正则表达式实用程序
public class RegexUtils
extends Object
java.lang.Object |
↳ | com.android.sts.common.RegexUtils |
包含 JUnit 断言的包装器,并在字符串中使用正则表达式匹配
概括
公共构造函数
正则表达式实用程序
public RegexUtils ()
公共方法
断言包含
public static void assertContains (String pattern,
String input)
参数 |
---|
pattern | String |
input | String |
断言包含多行
public static void assertContainsMultiline (String pattern,
String input)
参数 |
---|
pattern | String |
input | String |
断言不包含
public static void assertNotContains (String pattern,
String input)
参数 |
---|
pattern | String |
input | String |
断言不包含多行
public static void assertNotContainsMultiline (String pattern,
String input)
参数 |
---|
pattern | String |
input | String |