正規表示式實用程式
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 |