mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
update unit test
This commit is contained in:
parent
2602935b60
commit
ec2669d586
@ -213,9 +213,9 @@ public class XmlUtilTest {
|
||||
|
||||
@Test
|
||||
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);
|
||||
Assert.assertEquals("<title>hutool</title><lang>java</lang>", ret);
|
||||
Assert.assertEquals("<info><title>hutool</title><lang>java</lang></info>", ret);
|
||||
}
|
||||
|
||||
@Data
|
||||
|
Loading…
Reference in New Issue
Block a user