Skip to content

Commit

Permalink
Fixup testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadow-Devil committed Nov 5, 2024
1 parent 871d329 commit d89bfd8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ public void testMultipleDependencies() throws TomlException, IOException {
Assert.assertEquals(manifest.getDependencies().get(0).metadata().getVersion(), "1.0.5");
Assert.assertEquals(manifest.getDependencies().get(1).moduleID(), "jquery");
Assert.assertEquals(manifest.getDependencies().get(1).metadata().getVersion(), "2.2.3");
Assert.assertEquals(manifest.getDependencies().get(0).metadata().getPath().toString(), balaPath.toString());
Assert.assertEquals(manifest.getDependencies().get(0).metadata().getPath().orElseThrow().toString(),
balaPath.toString());

Files.delete(balaPath);
Files.delete(tmpDir);
Expand All @@ -220,7 +221,7 @@ public void testDependencyWithWindowsAbsolutePath() throws TomlException, IOExce
Assert.assertEquals(manifest.getDependencies().get(0).metadata().getVersion(), "1.0.5");
Assert.assertEquals(manifest.getDependencies().get(1).moduleID(), "jquery");
Assert.assertEquals(manifest.getDependencies().get(1).metadata().getVersion(), "2.2.3");
Assert.assertEquals(manifest.getDependencies().get(0).metadata().getPath().toString(),
Assert.assertEquals(manifest.getDependencies().get(0).metadata().getPath().orElseThrow().toString(),
balaPath.toString());

Files.delete(balaPath);
Expand Down

0 comments on commit d89bfd8

Please sign in to comment.