public static void assertExpectedOutputContains(String expectedString,String x){
  if (!x.contains(expectedString)) {
    fail("expected '" + expectedString + "' not found in '"+ x+ "'");
  }
}

public static void assertExpectedOutputContains ( String expectedString , String x ) { if ( ! x . contains ( expectedString ) ) { fail ( "expected '" + expectedString + "' not found in '" + x + "'" ) ; } }
fails if expectedstring is not found in x
