![JAR search and dependency download from the Maven repository](/logo.png)
com.objogate.wl.swing.matcher.AbstractButtonTextMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of windowlicker-swing Show documentation
Show all versions of windowlicker-swing Show documentation
This is the Windowlicker Swing library.
The newest version!
package com.objogate.wl.swing.matcher;
import javax.swing.AbstractButton;
import org.hamcrest.Description;
import org.hamcrest.TypeSafeMatcher;
public class AbstractButtonTextMatcher extends TypeSafeMatcher {
private String text;
public AbstractButtonTextMatcher(String text) {
this.text = text;
}
@Override
public boolean matchesSafely(T buttonAlike) {
return text.equals(buttonAlike.getText());
}
public void describeTo(Description description) {
description.appendText("with text matching '");
description.appendText(text);
description.appendText("'");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy