@Test public void testBase() throws CompositeFormatIntegrityCheckerException { CompositeFormatIntegrityChecker checker = new CompositeFormatIntegrityChecker(); String source = "Failed to grant {0} access to {1}"; String target = "Echec en donnant {0} accès à {1}"; checker.check(source, target); }
@Override public void check(String sourceContent, String targetContent) throws CompositeFormatIntegrityCheckerException { try { super.check(sourceContent, targetContent); } catch (RegexCheckerException rce) { throw new CompositeFormatIntegrityCheckerException(rce); } }
CompositeFormatIntegrityChecker extends RegexIntegrityChecker { @Override public void check(String sourceContent, String targetContent) throws CompositeFormatIntegrityCheckerException { try { super.check(sourceContent, targetContent); } catch (RegexCheckerException rce) { throw new CompositeFormatIntegrityCheckerException(rce); } } }
CompositeFormatIntegrityChecker extends RegexIntegrityChecker { @Override public void check(String sourceContent, String targetContent) throws CompositeFormatIntegrityCheckerException { try { super.check(sourceContent, targetContent); } catch (RegexCheckerException rce) { throw new CompositeFormatIntegrityCheckerException(rce); } }  }
CompositeFormatIntegrityChecker extends RegexIntegrityChecker { @Override public void check(String sourceContent, String targetContent) throws CompositeFormatIntegrityCheckerException { try { super.check(sourceContent, targetContent); } catch (RegexCheckerException rce) { throw new CompositeFormatIntegrityCheckerException(rce); } }  @Override String getRegex(); @Override void check(String sourceContent, String targetContent); }
CompositeFormatIntegrityChecker extends RegexIntegrityChecker { @Override public void check(String sourceContent, String targetContent) throws CompositeFormatIntegrityCheckerException { try { super.check(sourceContent, targetContent); } catch (RegexCheckerException rce) { throw new CompositeFormatIntegrityCheckerException(rce); } }  @Override String getRegex(); @Override void check(String sourceContent, String targetContent);  }