mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix test
This commit is contained in:
parent
3fb26abaee
commit
943a8c9c81
@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
package org.dromara.hutool.core.text.escape;
|
package org.dromara.hutool.core.text.escape;
|
||||||
|
|
||||||
import org.dromara.hutool.core.lang.Console;
|
|
||||||
import org.junit.jupiter.api.Assertions;
|
import org.junit.jupiter.api.Assertions;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
@ -87,7 +86,8 @@ public class EscapeUtilTest {
|
|||||||
@Test
|
@Test
|
||||||
public void escapeXmlTest(){
|
public void escapeXmlTest(){
|
||||||
final String a = "<>";
|
final String a = "<>";
|
||||||
final String escape = EscapeUtil.escape(a);
|
final String escape = EscapeUtil.escapeXml(a);
|
||||||
Console.log(escape);
|
Assertions.assertEquals("<>", escape);
|
||||||
|
Assertions.assertEquals("中文“双引号”", EscapeUtil.escapeXml("中文“双引号”"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user