public void assertTextPresent(String expected,String actual){
  if ((actual == null) || (!actual.contains(expected))) {
    throw new AssertionFailedError("expected presence of [" + expected + "], but was ["+ actual+ "]");
  }
}

public void assertTextPresent ( String expected , String actual ) { if ( ( actual == null ) || ( ! actual . contains ( expected ) ) ) { throw new AssertionFailedError ( "expected presence of [" + expected + "], but was [" + actual + "]" ) ; } }
asserts if the provided text is part of some text .
