mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
add test
This commit is contained in:
parent
694168a3cb
commit
c5a1223803
@ -0,0 +1,18 @@
|
||||
package org.dromara.hutool.http.html;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class IssueI8YV0KTest {
|
||||
@Test
|
||||
public void removeHtmlAttrTest(){
|
||||
final String str = "<content styleCode=\"xmChange yes\">";
|
||||
Assertions.assertEquals("<content>", HtmlUtil.removeHtmlAttr(str, "styleCode"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void removeHtmlAttrTest2(){
|
||||
final String str = "<content styleCode=\"xmChange\"/>";
|
||||
Assertions.assertEquals("<content/>", HtmlUtil.removeHtmlAttr(str, "styleCode"));
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user