@Test public void displayTest() throws Exception { Template template = mock(Template.class); when(this.templateManager.getTemplate(any())).thenReturn(template); doAnswer(i -> ((StringWriter) i.getArgument(1)).append("displayer")) .when(templateManager).render(any(Template.class), any()); assertEquals("displayer", this.defaultTemplateHTMLDisplayer.display(DocumentReference.class, documentReference)); }
@Override public String display(Type type, Object value) throws HTMLDisplayerException { return display(type, value, Collections.emptyMap()); }
DefaultTemplateHTMLDisplayer implements HTMLDisplayer<Object> { @Override public String display(Type type, Object value) throws HTMLDisplayerException { return display(type, value, Collections.emptyMap()); } }
DefaultTemplateHTMLDisplayer implements HTMLDisplayer<Object> { @Override public String display(Type type, Object value) throws HTMLDisplayerException { return display(type, value, Collections.emptyMap()); }  }
DefaultTemplateHTMLDisplayer implements HTMLDisplayer<Object> { @Override public String display(Type type, Object value) throws HTMLDisplayerException { return display(type, value, Collections.emptyMap()); }  @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> { @Override public String display(Type type, Object value) throws HTMLDisplayerException { return display(type, value, Collections.emptyMap()); }  @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; }