}
};
}
public Assertion textDoesNotContain(final String text) {
return new Assertion() {
public void check() {
String actualText = jLabel.getText();
AssertAdapter.assertTrue("The component text should not contain '" + text +
"' - actual content is: " + actualText,
actualText.indexOf(text) < 0);