@Test public void testGet_TemplateNotFound() throws Exception { try { new FreeMarker().get("x", ""); throw new RuntimeException("Expected exception not occurred"); } catch (UncheckedIOException ex) { assertTrue(ex.getMessage().contains("not found")); } }
@Override public String get(String resource, Object args) { Template template = getTemplate(resource); return processTemplate(args, template); }
FreeMarker implements TemplateEngine { @Override public String get(String resource, Object args) { Template template = getTemplate(resource); return processTemplate(args, template); } }
FreeMarker implements TemplateEngine { @Override public String get(String resource, Object args) { Template template = getTemplate(resource); return processTemplate(args, template); }  }
FreeMarker implements TemplateEngine { @Override public String get(String resource, Object args) { Template template = getTemplate(resource); return processTemplate(args, template); }  @Override String get(String resource, Object args); @Override String get(String resource); }
FreeMarker implements TemplateEngine { @Override public String get(String resource, Object args) { Template template = getTemplate(resource); return processTemplate(args, template); }  @Override String get(String resource, Object args); @Override String get(String resource);  }