Compiler { public CompiledTemplate compile(String template) throws CodeSyntaxException { return compile(template, false, false); } Compiler(FormatterTable formatterTable, PredicateTable predicateTable); FormatterTable formatterTable(); PredicateTable predicateTable(); CompilerExecutor newExecutor(); CompiledTemplate compile(String template); CompiledTemplate compile(String template, boolean safeMode, boolean preprocess); ValidatedTemplate validate(String template);  }
@Test public void testCompile() throws CodeException { COMPILER.compile("{.section foo}{@}{.end}", false, false); try { COMPILER.compile("{.foo?}", false, false); Assert.fail("Expected CodeException"); } catch (CodeException e) { } }