mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
add test
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
package cn.hutool.http;
|
||||||
|
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class IssueI8YV0KTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void removeHtmlAttrTest(){
|
||||||
|
final String str = "<content styleCode=\"xmChange yes\">";
|
||||||
|
Assert.assertEquals("<content>", HtmlUtil.removeHtmlAttr(str, "styleCode"));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void removeHtmlAttrTest2(){
|
||||||
|
final String str = "<content styleCode=\"xmChange\"/>";
|
||||||
|
Assert.assertEquals("<content/>", HtmlUtil.removeHtmlAttr(str, "styleCode"));
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user