459460461462463464465
* @param regex * the regular expression. * @return empty String (""). */ public static String matches(String regex) { return reportMatcher(new Matches(regex)).returnString(); }
* @param regex * the regular expression. * @return <code>null</code>. */ public static String matches(String regex) { return reportMatcher(new Matches(regex)).<String>returnNull(); }
406407408409410411412
555556557558559560561
477478479480481482483
67686970717273
public static Matcher<String> contains(String string) { return new Contains(string); } public static Matcher<String> matches(String regex) { return (Matcher<String>)((Object)new Matches(regex)); }
128129130131132133134
threadPool.execute(new TestTask()); ISOUtil.sleep(20); Thread[] tl = new Thread[threadPool.activeCount()]; threadPool.enumerate(tl); for (Thread t :tl ) assertThat(t.getName(), new Matches("PooledThread-\\d+-(running|idle)")); }