@@ -68,8 +68,9 @@ void gradle() {
6868 // It is a limitation of the tooling API which prevents configuration-granularity error information from being collected.
6969 // So the GradleDependencyConfigurationErrors table will never be populated in unit tests.
7070 .dataTable (RepositoryAccessibilityReport .Row .class , rows -> {
71- assertThat (rows ).hasSize (4 );
72- assertThat (rows ).contains (
71+ assertThat (rows )
72+ .hasSize (4 )
73+ .contains (
7374 new RepositoryAccessibilityReport .Row ("https://repo.maven.apache.org/maven2" , "" , "" , 200 , "" , "" ));
7475 assertThat (rows ).filteredOn (row -> row .getUri ().startsWith ("file:/" ) && "" .equals (row .getPingExceptionMessage ())).hasSize (1 );
7576 assertThat (rows ).contains (
@@ -107,10 +108,11 @@ void gradleNoDefaultRepos() {
107108 // It is a limitation of the tooling API which prevents configuration-granularity error information from being collected.
108109 // So the GradleDependencyConfigurationErrors table will never be populated in unit tests.
109110 .dataTable (RepositoryAccessibilityReport .Row .class , rows -> {
110- assertThat (rows ).hasSize (2 );
111- assertThat (rows ).contains (
112- new RepositoryAccessibilityReport .Row ("https://plugins.gradle.org/m2" , "" , "" , 200 , "" , "" ));
113- assertThat (rows ).contains (
111+ assertThat (rows )
112+ .hasSize (2 )
113+ .contains (
114+ new RepositoryAccessibilityReport .Row ("https://plugins.gradle.org/m2" , "" , "" , 200 , "" , "" ))
115+ .contains (
114116 new RepositoryAccessibilityReport .Row ("https://nonexistent.moderne.io/maven2" , "java.net.UnknownHostException" , "nonexistent.moderne.io" , null , "" , "" ));
115117 }),
116118 //language=groovy
@@ -157,10 +159,11 @@ void mavenSettingsWithMirrors() {
157159 ctx .setMavenSettings (settings );
158160 spec .beforeRecipe (withToolingApi ())
159161 .dataTable (RepositoryAccessibilityReport .Row .class , rows -> {
160- assertThat (rows ).contains (
162+ assertThat (rows )
163+ .contains (
161164 new RepositoryAccessibilityReport .Row ("https://nonexistent.moderne.io/maven2" , "java.net.UnknownHostException" , "nonexistent.moderne.io" , null , "" , "" )
162- );
163- assertThat ( rows ) .noneMatch (repo -> repo .getUri ().contains ("https://repo.maven.apache.org/maven2" ));
165+ )
166+ .noneMatch (repo -> repo .getUri ().contains ("https://repo.maven.apache.org/maven2" ));
164167 })
165168 .executionContext (ctx );
166169 },
0 commit comments