Package org.mockito.internal.matchers

Examples of org.mockito.internal.matchers.Matches


     * @param regex
     *            the regular expression.
     * @return empty String ("").
     */
    public static String matches(String regex) {
        return reportMatcher(new Matches(regex)).returnString();
    }
View Full Code Here


     * @param regex
     *            the regular expression.
     * @return <code>null</code>.
     */
    public static String matches(String regex) {
        return reportMatcher(new Matches(regex)).<String>returnNull();
    }
View Full Code Here

     * @param regex
     *            the regular expression.
     * @return <code>null</code>.
     */
    public static String matches(String regex) {
        return reportMatcher(new Matches(regex)).<String>returnNull();
    }
View Full Code Here

     * @param regex
     *            the regular expression.
     * @return empty String ("").
     */
    public static String matches(String regex) {
        return reportMatcher(new Matches(regex)).returnString();
    }
View Full Code Here

     * @param regex
     *            the regular expression.
     * @return empty String ("").
     */
    public static String matches(String regex) {
        return reportMatcher(new Matches(regex)).returnString();
    }
View Full Code Here

    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));
    }
View Full Code Here

        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)"));
    }
View Full Code Here

TOP

Related Classes of org.mockito.internal.matchers.Matches

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.