public String getText() {
return jTextComponent.getText();
}
public Assertion textContains(final String text) {
return new Assertion() {
public void check() {
String actual = jTextComponent.getText().replaceAll("\n ", "").replaceAll("\n </body>", "</body>");
AssertAdapter.assertTrue("The component text does not contain '" + text + "' - actual content is:" + actual,
actual.indexOf(text.trim()) >= 0);
}