@@ -235,34 +235,17 @@ void dependencyGraphForDuplicateTransitiveWithSameGroupIdArtifactIdVersion() {
235235 spec -> spec
236236 .recipe (new DependencyInsight ("jakarta.annotation" , "jakarta.annotation-api" , null , "compileClasspath" ))
237237 .dataTable (DependenciesInUse .Row .class , rows -> {
238- assertThat (rows ).hasSize (3 );
239- DependenciesInUse .Row row1 = rows .getFirst ();
240- assertThat (row1 .getDependencyGraph ()).isEqualTo (
238+ assertThat (rows ).hasSize (1 );
239+ DependenciesInUse .Row row = rows .getFirst ();
240+ assertThat (row .getDependencyGraph ()).isEqualTo (
241241 """
242242 jakarta.annotation:jakarta.annotation-api:1.3.5
243243 \\ --- org.glassfish.jersey.core:jersey-common:2.35
244244 \\ --- org.glassfish.jersey.core:jersey-client:2.35
245245 \\ --- org.glassfish.jersey.core:jersey-server:2.35
246246 \\ --- compileClasspath
247247 """ .strip ());
248- assertThat (row1 .getDepth ()).isEqualTo (3 );
249- DependenciesInUse .Row row2 = rows .get (1 );
250- assertThat (row2 .getDependencyGraph ()).isEqualTo (
251- """
252- jakarta.annotation:jakarta.annotation-api:1.3.5
253- \\ --- org.glassfish.jersey.core:jersey-common:2.35
254- \\ --- org.glassfish.jersey.core:jersey-server:2.35
255- \\ --- compileClasspath
256- """ .strip ());
257- assertThat (row2 .getDepth ()).isEqualTo (2 );
258- DependenciesInUse .Row row3 = rows .get (2 );
259- assertThat (row3 .getDependencyGraph ()).isEqualTo (
260- """
261- jakarta.annotation:jakarta.annotation-api:1.3.5
262- \\ --- org.glassfish.jersey.core:jersey-server:2.35
263- \\ --- compileClasspath
264- """ .strip ());
265- assertThat (row3 .getDepth ()).isEqualTo (1 );
248+ assertThat (row .getDepth ()).isEqualTo (3 );
266249 }),
267250 buildGradle (
268251 """
0 commit comments