ImageUtils { public static ImageLibrary createCustomizedImageLibrary(final ImageLibrary fallbackImageLibrary, final String path) { final String defaultResourceDirectory = "data/" + path; return new ResourceImageLibrary(defaultResourceDirectory, fallbackImageLibrary); }  static ImageLibrary createImageLibrary(final File directoryFile); static ImageLibrary createImageLibrary(final File directoryFile, final File defaultDirectoryFile); static ImageLibrary createDefaultImageLibrary(final ImageLibrary fallbackImageLibrary); static ImageLibrary createCustomizedImageLibrary(final ImageLibrary fallbackImageLibrary, final String path); @Deprecated static List<Image> loadAllImages(final File directoryFile); static List<File> listImageFiles(final File directoryFile); static List<Image> loadAllAsImages(final List<File> imageFiles); static Image loadImage(final File file); static Image loadImage(final String resource);  }
@Test void canCreateACustomImageLibraryFromADirectory() { final ImageLibrary library = ImageUtils.createCustomizedImageLibrary(null, "biboule/images"); assert (library.getImagesCount() == 1); }