ImageUtils { public static ImageLibrary createImageLibrary(final File directoryFile) { return new LazyImageLibrary(directoryFile, createDefaultImageLibrary(null)); }  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 canCreateAnImageLibraryFromADirectory() { final ImageLibrary library = ImageUtils.createImageLibrary(new File(localDataFolder)); assert (library.getImagesCount() == 1); }