public static void compare(final String expected,final String actual){
  try {
    final String in=replaceTabsWithSpaces(expected.trim());
    final String out=replaceTabsWithSpaces(actual.trim());
    Assert.assertEquals(in,out);
    LOG.debug("Compare.... [OK]");
  }
 catch (  final ComparisonFailure e) {
    LOG.error("Compare.... [FAIL]",e.getMessage());
    throw e;
  }
}

public static void compare ( final String expected , final String actual ) { try { final String in = replaceTabsWithSpaces ( expected . trim ( ) ) ; final String out = replaceTabsWithSpaces ( actual . trim ( ) ) ; Assert . assertEquals ( in , out ) ; LOG . debug ( "Compare.... [OK]" ) ; } catch ( final ComparisonFailure e ) { LOG . error ( "Compare.... [FAIL]" , e . getMessage ( ) ) ; throw e ; } }
compares two strings by removing trailing spaces & tabs for correct comparison .
