@Test public void getTemplateTest() throws Exception { this.defaultTemplateHTMLDisplayer.display(DocumentReference.class, documentReference); verify(this.templateManager).getTemplate("html_displayer/documentreference/view.vm"); verify(this.templateManager).getTemplate("html_displayer/documentreference.vm"); verify(this.templateManager).getTemplate("html_displayer/view.vm"); verify(this.templateManager).getTemplate("html_displayer/default.vm"); }
private Template getTemplate(Type type, Object value, String mode) { if (type != null || value == null) { return getTemplate(type, mode); } else { return getTemplate(value.getClass(), mode); } }
DefaultTemplateHTMLDisplayer implements HTMLDisplayer<Object> { private Template getTemplate(Type type, Object value, String mode) { if (type != null || value == null) { return getTemplate(type, mode); } else { return getTemplate(value.getClass(), mode); } } }
DefaultTemplateHTMLDisplayer implements HTMLDisplayer<Object> { private Template getTemplate(Type type, Object value, String mode) { if (type != null || value == null) { return getTemplate(type, mode); } else { return getTemplate(value.getClass(), mode); } }  }
DefaultTemplateHTMLDisplayer implements HTMLDisplayer<Object> { private Template getTemplate(Type type, Object value, String mode) { if (type != null || value == null) { return getTemplate(type, mode); } else { return getTemplate(value.getClass(), mode); } }  @Override String display(Type type, Object value); @Override String display(Type type, Object value, Map<String, String> parameters); @Override String display(Type type, Object value, Map<String, String> parameters, String mode); }
DefaultTemplateHTMLDisplayer implements HTMLDisplayer<Object> { private Template getTemplate(Type type, Object value, String mode) { if (type != null || value == null) { return getTemplate(type, mode); } else { return getTemplate(value.getClass(), mode); } }  @Override String display(Type type, Object value); @Override String display(Type type, Object value, Map<String, String> parameters); @Override String display(Type type, Object value, Map<String, String> parameters, String mode); static final String TEMPLATE_FOLDER; static final String DISPLAYER_VELOCITY_NAME; static final String TEMPLATE_EXTENSION; }