mirror of
https://gitee.com/dromara/hutool.git
synced 2025-06-28 04:35:14 +08:00
fix test
This commit is contained in:
parent
b05f45a76f
commit
6f7d4f1402
@ -30,9 +30,9 @@ import javax.xml.xpath.XPathConstants;
|
||||
public class IssueI676ITTest {
|
||||
@Test
|
||||
public void parseXMLTest() {
|
||||
final JSONObject jsonObject = JSONUtil.parseObj(ResourceUtil.readUtf8Str("issueI676IT.json"));
|
||||
final JSONObject jsonObject = JSONUtil.parseObj(ResourceUtil.readUtf8Str("IssueI676IT.json"));
|
||||
final String xmlStr = JSONXMLSerializer.toXml(jsonObject, null, (String) null);
|
||||
final String content = String.valueOf(XPathUtil.getByXPath("/page/orderItems[1]/content", XmlUtil.readXml(xmlStr), XPathConstants.STRING));
|
||||
Assertions.assertEquals(content, "bar1");
|
||||
Assertions.assertEquals("bar1", content);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user