mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
update unit test
This commit is contained in:
parent
2602935b60
commit
ec2669d586
@ -213,9 +213,9 @@ public class XmlUtilTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void cleanNoteTest() {
|
public void cleanNoteTest() {
|
||||||
final String xmlContent = "<title>hutool</title><!-- 这是注释 --><lang>java</lang>";
|
final String xmlContent = "<info><title>hutool</title><!-- 这是注释 --><lang>java</lang></info>";
|
||||||
final String ret = XmlUtil.cleanNote(xmlContent);
|
final String ret = XmlUtil.cleanNote(xmlContent);
|
||||||
Assert.assertEquals("<title>hutool</title><lang>java</lang>", ret);
|
Assert.assertEquals("<info><title>hutool</title><lang>java</lang></info>", ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user