@Test public void even_when_list_is_null_result_is_not_null_but_empty() throws Exception { when(collector.fetchMustBeDocumentParts()).thenReturn(null); String generated = generatorToTest.generate(null); assertNotNull(generated); assertTrue(generated.isEmpty()); }
public String generate(List<DocAnnotationData> list) { return generate(list, AcceptAllSpringValueFilter.INSTANCE); }
SystemPropertiesDescriptionGenerator implements Generator { public String generate(List<DocAnnotationData> list) { return generate(list, AcceptAllSpringValueFilter.INSTANCE); } }
SystemPropertiesDescriptionGenerator implements Generator { public String generate(List<DocAnnotationData> list) { return generate(list, AcceptAllSpringValueFilter.INSTANCE); } SystemPropertiesDescriptionGenerator(); }
SystemPropertiesDescriptionGenerator implements Generator { public String generate(List<DocAnnotationData> list) { return generate(list, AcceptAllSpringValueFilter.INSTANCE); } SystemPropertiesDescriptionGenerator(); String generate(List<DocAnnotationData> list); String generate(List<DocAnnotationData> list, SpringValueFilter filter); }
SystemPropertiesDescriptionGenerator implements Generator { public String generate(List<DocAnnotationData> list) { return generate(list, AcceptAllSpringValueFilter.INSTANCE); } SystemPropertiesDescriptionGenerator(); String generate(List<DocAnnotationData> list); String generate(List<DocAnnotationData> list, SpringValueFilter filter);  }