@Test(expected = WhitespaceIntegrityCheckerException.class) public void testLeadingWhitespaceCheckCatchesRemovedNewline() { String source = "\nThere are %1 files and %2 folders"; String target = "Il y a %1 fichiers et %2 dossiers"; checker.check(source, target); }
@Override public void check(String sourceContent, String targetContent) throws WhitespaceIntegrityCheckerException { checkLeadingWhitespaces(sourceContent, targetContent); checkTrailingWhitespaces(sourceContent, targetContent); }
WhitespaceIntegrityChecker extends AbstractTextUnitIntegrityChecker { @Override public void check(String sourceContent, String targetContent) throws WhitespaceIntegrityCheckerException { checkLeadingWhitespaces(sourceContent, targetContent); checkTrailingWhitespaces(sourceContent, targetContent); } }
WhitespaceIntegrityChecker extends AbstractTextUnitIntegrityChecker { @Override public void check(String sourceContent, String targetContent) throws WhitespaceIntegrityCheckerException { checkLeadingWhitespaces(sourceContent, targetContent); checkTrailingWhitespaces(sourceContent, targetContent); }  }
WhitespaceIntegrityChecker extends AbstractTextUnitIntegrityChecker { @Override public void check(String sourceContent, String targetContent) throws WhitespaceIntegrityCheckerException { checkLeadingWhitespaces(sourceContent, targetContent); checkTrailingWhitespaces(sourceContent, targetContent); }  @Override void check(String sourceContent, String targetContent); void checkLeadingWhitespaces(String sourceContent, String targetContent); void checkTrailingWhitespaces(String sourceContent, String targetContent); }
WhitespaceIntegrityChecker extends AbstractTextUnitIntegrityChecker { @Override public void check(String sourceContent, String targetContent) throws WhitespaceIntegrityCheckerException { checkLeadingWhitespaces(sourceContent, targetContent); checkTrailingWhitespaces(sourceContent, targetContent); }  @Override void check(String sourceContent, String targetContent); void checkLeadingWhitespaces(String sourceContent, String targetContent); void checkTrailingWhitespaces(String sourceContent, String targetContent);  }