protected void assertContains(String result,String contains){
  if (result.indexOf(contains) < 0) {
    fail(result + " does not contain: " + contains);
  }
}

protected void assertContains ( String result , String contains ) { if ( result . indexOf ( contains ) < 0 ) { fail ( result + " does not contain: " + contains ) ; } }
check that a result contains the given substring .
