Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Nov 13, 2024
1 parent 2ea36db commit 55f5cd5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void testResolveArtifactCoordinatesDependencies() {
List<Path> paths = session.resolveDependencies(coords);

assertNotNull(paths);
assertEquals(11, paths.size());
assertEquals(10, paths.size());
assertEquals("test-extension-1.jar", paths.get(0).getFileName().toString());

// JUnit has an "Automatic-Module-Name", so it appears on the module path.
Expand All @@ -199,7 +199,7 @@ void testResolveArtifactCoordinatesDependencies() {
List<Path> unresolved = dispatched.get(PathType.UNRESOLVED);
assertEquals(3, dispatched.size());
assertEquals(1, unresolved.size());
assertEquals(9, classes.size()); // "plexus.pom" and "junit.jar" are excluded.
assertEquals(8, classes.size()); // "plexus.pom" and "junit.jar" are excluded.
assertEquals(1, modules.size());
assertEquals("plexus-1.0.11.pom", unresolved.get(0).getFileName().toString());
assertEquals("test-extension-1.jar", classes.get(0).getFileName().toString());
Expand All @@ -214,7 +214,7 @@ void testResolveArtifactCoordinatesDependencies() {
unresolved = dispatched.get(PathType.UNRESOLVED);
assertEquals(2, dispatched.size());
assertEquals(1, unresolved.size());
assertEquals(10, classes.size());
assertEquals(9, classes.size());
assertNull(modules);
assertTrue(paths.containsAll(classes));
assertEquals("plexus-1.0.11.pom", unresolved.get(0).getFileName().toString());
Expand Down

0 comments on commit 55f5cd5

Please sign in to comment.