mirror of https://github.com/apache/maven.git
[MNG-7127] fix MavenCliTest.testStyleColors test in JDK 16
The MavenCliTest.testStyleColors is not failing when the build is under JDK 8 or JDK 11. After changing to JDK 16, the test fails, this commit is to fix the NullPointerException. Tested on JDK 8, 11 adn 16 with: `mvn clean verify`
This commit is contained in:
parent
f98e632108
commit
484e502737
|
@ -268,6 +268,7 @@ public class MavenCliTest
|
|||
|
||||
MessageUtils.setColorEnabled( true );
|
||||
request = new CliRequest( new String[] { "-l", "target/temp/mvn.log" }, null );
|
||||
request.workingDirectory = "target/temp";
|
||||
cli.cli( request );
|
||||
cli.properties( request );
|
||||
cli.logging( request );
|
||||
|
@ -289,6 +290,7 @@ public class MavenCliTest
|
|||
|
||||
MessageUtils.setColorEnabled( false );
|
||||
request = new CliRequest( new String[] { "-Dstyle.color=always", "-B", "-l", "target/temp/mvn.log" }, null );
|
||||
request.workingDirectory = "target/temp";
|
||||
cli.cli( request );
|
||||
cli.properties( request );
|
||||
cli.logging( request );
|
||||
|
@ -298,6 +300,7 @@ public class MavenCliTest
|
|||
{
|
||||
MessageUtils.setColorEnabled( false );
|
||||
request = new CliRequest( new String[] { "-Dstyle.color=maybe", "-B", "-l", "target/temp/mvn.log" }, null );
|
||||
request.workingDirectory = "target/temp";
|
||||
cli.cli( request );
|
||||
cli.properties( request );
|
||||
cli.logging( request );
|
||||
|
|
Loading…
Reference in New Issue