@Test(expectedExceptions = NullPointerException.class) public void testCheckFilesExistsWithPairsWhenSearchResultIsNull() { underTest.checkFilesExistsWithPairs(null); }
public List<List<String>> checkFilesExistsWithPairs(final List<String> searchResult) { List<List<String>> result = new ArrayList<>(); for (String actualFile : searchResult) { List<String> actualPair = new ArrayList<>(); markFileIfNotExists(actualFile, actualPair); String pairFile = getPair(actualFile); markFileIfNotExists(pairFile, actualPair); result.add(actualPair); } return result; }
FileChecker { public List<List<String>> checkFilesExistsWithPairs(final List<String> searchResult) { List<List<String>> result = new ArrayList<>(); for (String actualFile : searchResult) { List<String> actualPair = new ArrayList<>(); markFileIfNotExists(actualFile, actualPair); String pairFile = getPair(actualFile); markFileIfNotExists(pairFile, actualPair); result.add(actualPair); } return result; } }
FileChecker { public List<List<String>> checkFilesExistsWithPairs(final List<String> searchResult) { List<List<String>> result = new ArrayList<>(); for (String actualFile : searchResult) { List<String> actualPair = new ArrayList<>(); markFileIfNotExists(actualFile, actualPair); String pairFile = getPair(actualFile); markFileIfNotExists(pairFile, actualPair); result.add(actualPair); } return result; }  }
FileChecker { public List<List<String>> checkFilesExistsWithPairs(final List<String> searchResult) { List<List<String>> result = new ArrayList<>(); for (String actualFile : searchResult) { List<String> actualPair = new ArrayList<>(); markFileIfNotExists(actualFile, actualPair); String pairFile = getPair(actualFile); markFileIfNotExists(pairFile, actualPair); result.add(actualPair); } return result; }  List<List<String>> checkFilesExistsWithPairs(final List<String> searchResult); }
FileChecker { public List<List<String>> checkFilesExistsWithPairs(final List<String> searchResult) { List<List<String>> result = new ArrayList<>(); for (String actualFile : searchResult) { List<String> actualPair = new ArrayList<>(); markFileIfNotExists(actualFile, actualPair); String pairFile = getPair(actualFile); markFileIfNotExists(pairFile, actualPair); result.add(actualPair); } return result; }  List<List<String>> checkFilesExistsWithPairs(final List<String> searchResult);  }