diff --git a/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java b/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java index 9533197ac1..cc9cced879 100644 --- a/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java +++ b/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java @@ -66,7 +66,7 @@ public class MavenCliTest System.setProperty( "java.specification.version", "1.3" ); assertEquals( 1, MavenCli.main( new String[] { "-h" }, classWorld ) ); System.setProperty( "java.specification.version", "1.4" ); - assertEquals( 0, MavenCli.main( new String[] { "-h" }, classWorld ) ); + assertEquals( 1, MavenCli.main( new String[] { "-h" }, classWorld ) ); System.setProperty( "java.specification.version", "1.5" ); assertEquals( 0, MavenCli.main( new String[] { "-h" }, classWorld ) ); System.setProperty( "java.specification.version", "1.6" );