Skip to content

Commit

Permalink
chore(test): specified parent directory for fatJarArchive
Browse files Browse the repository at this point in the history
  • Loading branch information
l3002 committed Mar 8, 2024
1 parent 1d0a7c3 commit ffe32fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void testMainClassDeterminationFromDetectionOnNonFatJar() {
void testMainClassDeterminationFromFatJar(@TempDir File baseDirectory) {
try (MockedConstruction<FatJarDetector> fatJarDetector = mockConstruction(FatJarDetector.class,
(mock, ctx) -> {
File fatJarArchive = new File("fat.jar");
File fatJarArchive = new File(baseDirectory,"fat.jar");
when(fatJarDetectorResult.getArchiveFile()).thenReturn(fatJarArchive);
when(mock.scan()).thenReturn(fatJarDetectorResult);
});
Expand Down

0 comments on commit ffe32fc

Please sign in to comment.