@Test public void testInitializeWithEmptyListShouldNotListFiles() { List<String> emptyList = Collections.emptyList(); underTest.initialize(emptyList); verify(fileUtils, never()).listFiles((File) Mockito.any()); }
public void initialize(final List<String> everyPathAsString) { for (String resourcePath : everyPathAsString) { addClassNamesFromFolder(resourcePath); } }
ClassNameMapper { public void initialize(final List<String> everyPathAsString) { for (String resourcePath : everyPathAsString) { addClassNamesFromFolder(resourcePath); } } }
ClassNameMapper { public void initialize(final List<String> everyPathAsString) { for (String resourcePath : everyPathAsString) { addClassNamesFromFolder(resourcePath); } } ClassNameMapper(); }
ClassNameMapper { public void initialize(final List<String> everyPathAsString) { for (String resourcePath : everyPathAsString) { addClassNamesFromFolder(resourcePath); } } ClassNameMapper(); void initialize(final List<String> everyPathAsString); void put(final String simpleClassName, final String fullClassName); String get(final String simpleClassName); }
ClassNameMapper { public void initialize(final List<String> everyPathAsString) { for (String resourcePath : everyPathAsString) { addClassNamesFromFolder(resourcePath); } } ClassNameMapper(); void initialize(final List<String> everyPathAsString); void put(final String simpleClassName, final String fullClassName); String get(final String simpleClassName);  }