public static void assertEqualsIgnoreNewline(String expected,String received){
  String expectedClean=removeNewline(expected);
  String receivedClean=removeNewline(received);
  if (!expectedClean.equals(receivedClean)) {
    log.error("Expected: " + expectedClean);
    log.error("Received: " + receivedClean);
    ScopeTestHelper.assertEquals("Mismatch ",expected,received);
  }
}

public static void assertEqualsIgnoreNewline ( String expected , String received ) { String expectedClean = removeNewline ( expected ) ; String receivedClean = removeNewline ( received ) ; if ( ! expectedClean . equals ( receivedClean ) ) { log . error ( "Expected: " + expectedClean ) ; log . error ( "Received: " + receivedClean ) ; ScopeTestHelper . assertEquals ( "Mismatch " , expected , received ) ; } }
compare two strings removing all newline characters .
