@Test public void givenPathsToResources_whenGetResourcesContentsIsCalled_thenContentsAreReturned() { assertEquals(Collections.singletonList("This is a static resource file."), getResourcesContents("eu/dnetlib/iis/common/data/@a/static-resource-file.txt")); }
public static List<String> getResourcesContents(String... locations) { return Arrays.stream(locations) .map(ClassPathResourceProvider::getResourceContent) .collect(Collectors.toList()); }
ClassPathResourceProvider { public static List<String> getResourcesContents(String... locations) { return Arrays.stream(locations) .map(ClassPathResourceProvider::getResourceContent) .collect(Collectors.toList()); } }
ClassPathResourceProvider { public static List<String> getResourcesContents(String... locations) { return Arrays.stream(locations) .map(ClassPathResourceProvider::getResourceContent) .collect(Collectors.toList()); }  }
ClassPathResourceProvider { public static List<String> getResourcesContents(String... locations) { return Arrays.stream(locations) .map(ClassPathResourceProvider::getResourceContent) .collect(Collectors.toList()); }  static String getResourcePath(String location); static String getResourceContent(String location); static List<String> getResourcesContents(String... locations); static InputStream getResourceInputStream(String location); static InputStreamReader getResourceReader(String location); }
ClassPathResourceProvider { public static List<String> getResourcesContents(String... locations) { return Arrays.stream(locations) .map(ClassPathResourceProvider::getResourceContent) .collect(Collectors.toList()); }  static String getResourcePath(String location); static String getResourceContent(String location); static List<String> getResourcesContents(String... locations); static InputStream getResourceInputStream(String location); static InputStreamReader getResourceReader(String location);  }