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

org.loadui.testfx.controls.impl.NodeExistsMatcher Maven / Gradle / Ivy

The newest version!
package org.loadui.testfx.controls.impl;

import org.hamcrest.Description;
import org.hamcrest.Factory;
import org.hamcrest.Matcher;
import org.hamcrest.TypeSafeMatcher;
import org.loadui.testfx.GuiTest;

public class NodeExistsMatcher extends TypeSafeMatcher
{

	@Override
	public void describeTo( Description desc )
	{
		desc.appendText( "should exist" );
	}

	@Override
	public void describeMismatchSafely( String query, Description desc )
	{

		desc.appendText( "query \"" + query + "\" was not found " );
	}

	@Factory
	public static Matcher exists()
	{
		return new NodeExistsMatcher();
	}

	@Override
	public boolean matchesSafely( String query )
	{
		return GuiTest.exists( query );
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy