@Test public void testMustache() { CompositeFormatIntegrityChecker checker = new CompositeFormatIntegrityChecker(); String source = "A {{mustache}} template"; String target = "Un modėle {{mustache}}"; 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);  }