[MNG-5693] Remove check for link to cwiki
diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5482AetherNotFoundTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5482AetherNotFoundTest.java
index b7167b4..d0acdaf 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5482AetherNotFoundTest.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5482AetherNotFoundTest.java
@@ -90,7 +90,16 @@
assertTrue( "ClassNotFoundException message was not found in output.", msg >= 0 );
int url = indexOf( lines, ".*http://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound.*" );
- assertTrue( "Url to ClassNotFoundAether was not found in output.", url >= 0 );
+
+ boolean versionWithMng5693 = matchesVersionRange( "[3.6.1,)"); // no more link to cwiki
+ if ( versionWithMng5693 )
+ {
+ assertFalse( "Url to ClassNotFoundAether was found in output.", url >= 0 );
+ }
+ else
+ {
+ assertTrue( "Url to ClassNotFoundAether was not found in output.", url >= 0 );
+ }
}
private int indexOf( List<String> logLines, String regex )