FileSignature implements Serializable { public static FileSignature signAsList(File... files) throws IOException { return signAsList(Arrays.asList(files)); } private  FileSignature(final List<File> files); static FileSignature signAsList(File... files); static FileSignature signAsList(Iterable<File> files); static FileSignature signAsSet(File... files); static FileSignature signAsSet(Iterable<File> files); Collection<File> files(); File getOnlyFile(); static boolean machineIsWin(); static String pathNativeToUnix(String pathNative); static String pathUnixToNative(String pathUnix); static String subpath(String root, String child);  }
@Test public void testFromDirectory() { File dir = new File(rootFolder(), "dir"); assertThatThrownBy(() -> FileSignature.signAsList(dir)) .isInstanceOf(IllegalArgumentException.class); }
@Test public void testFromFilesAndDirectory() throws IOException { File dir = new File(rootFolder(), "dir"); List<File> files = getTestFiles(inputPaths); files.add(dir); Collections.shuffle(files); assertThatThrownBy(() -> FileSignature.signAsList(files)) .isInstanceOf(IllegalArgumentException.class); }