mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix test
This commit is contained in:
@@ -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("中文“双引号”"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user