Skip to content

Commit

Permalink
don't need to convert in both places
Browse files Browse the repository at this point in the history
  • Loading branch information
JuicyDragon committed Mar 18, 2024
1 parent c16a578 commit f8f158a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public Collection<File> findCaseDirectories(File rootSearchDirectory) {
}
}
}
return result.stream().map(File::getParentFile).collect(Collectors.toList());
return result;//.stream().map(File::getParentFile).collect(Collectors.toList());
}
}

Expand Down
3 changes: 3 additions & 0 deletions Java/SuperUtilities/src/test/java/CaseUtilityTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public void testCaseSearch() throws Exception {
// fbi2 file had been found much higher up.

Collection<File> caseDirs = CaseUtility.getInstance().findCaseDirectories(testDir);
for (File caseDir : caseDirs) {
log.info("Found Case Directory: " + caseDir.getAbsolutePath());
}
assertEquals(2, caseDirs.size());
}
}

0 comments on commit f8f158a

Please sign in to comment.