mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add test
This commit is contained in:
parent
22081e879a
commit
fc762d9872
@ -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"));
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user