All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.loadui.testfx.Matchers Maven / Gradle / Ivy

There is a newer version: 3.1.2
Show newest version
package org.loadui.testfx;

import org.loadui.testfx.matchers.HasLabelMatcher;
import org.loadui.testfx.matchers.HasLabelStringMatcher;
import org.hamcrest.Factory;
import org.hamcrest.Matcher;

public class Matchers
{
    /**
     * Matches any Labeled Node that has the given label.
     *
     * @param label
     */
	@Factory
	public static Matcher hasLabel( String label )
	{
		return new HasLabelStringMatcher( label );
	}

    /**
     * Matches any Labeled Node that has a label that matches the given stringMatcher.
     *
     * @param stringMatcher
     */
	@Factory
	public static Matcher hasLabel( Matcher stringMatcher )
	{
		return new HasLabelMatcher( stringMatcher );
	}
}