From 55f5cd5459d0edb40d46525a84ef526a5adfbd5d Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Wed, 13 Nov 2024 14:46:41 +0100 Subject: [PATCH] Fix test --- .../test/java/org/apache/maven/internal/impl/TestApi.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/impl/maven-core/src/test/java/org/apache/maven/internal/impl/TestApi.java b/impl/maven-core/src/test/java/org/apache/maven/internal/impl/TestApi.java index e3c3b37bc2ad..a176e3e52046 100644 --- a/impl/maven-core/src/test/java/org/apache/maven/internal/impl/TestApi.java +++ b/impl/maven-core/src/test/java/org/apache/maven/internal/impl/TestApi.java @@ -188,7 +188,7 @@ void testResolveArtifactCoordinatesDependencies() { List 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. @@ -199,7 +199,7 @@ void testResolveArtifactCoordinatesDependencies() { List 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()); @@ -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());