mirror of https://github.com/apache/maven.git
remove dependence on formatting
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@750032 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
37781e9962
commit
b26636085c
|
@ -57,7 +57,7 @@ public class MavenITmng3641ProfileActivationWarningTest
|
||||||
verifier.resetStreams();
|
verifier.resetStreams();
|
||||||
|
|
||||||
List logFile = verifier.loadFile( verifier.getBasedir(), verifier.getLogFileName(), false );
|
List logFile = verifier.loadFile( verifier.getBasedir(), verifier.getLogFileName(), false );
|
||||||
assertFalse( logFile.contains( "[WARNING] Profile with id: 'mng-3641-it-provided-profile' has not been activated." ) );
|
assertFalse( logFile.contains( "Profile with id: 'mng-3641-it-provided-profile' has not been activated." ) );
|
||||||
|
|
||||||
// (2) Second run: make sure the profile was not found and a warning was printed.
|
// (2) Second run: make sure the profile was not found and a warning was printed.
|
||||||
verifier = new Verifier( testDir.getAbsolutePath() );
|
verifier = new Verifier( testDir.getAbsolutePath() );
|
||||||
|
@ -68,7 +68,7 @@ public class MavenITmng3641ProfileActivationWarningTest
|
||||||
verifier.resetStreams();
|
verifier.resetStreams();
|
||||||
|
|
||||||
logFile = verifier.loadFile( verifier.getBasedir(), verifier.getLogFileName(), false );
|
logFile = verifier.loadFile( verifier.getBasedir(), verifier.getLogFileName(), false );
|
||||||
assertTrue( logFile.contains( "[WARNING] Profile with id: 'mng-3641-TWlzdGVyIFQgd2FzIGhlcmUuICheX14p' has not been activated." ) );
|
assertTrue( logFile.contains( "Profile with id: 'mng-3641-TWlzdGVyIFQgd2FzIGhlcmUuICheX14p' has not been activated." ) );
|
||||||
|
|
||||||
// (3) Third run: make sure the first profile is found while the other is not and a warning was printed
|
// (3) Third run: make sure the first profile is found while the other is not and a warning was printed
|
||||||
// accordingly.
|
// accordingly.
|
||||||
|
@ -80,8 +80,8 @@ public class MavenITmng3641ProfileActivationWarningTest
|
||||||
verifier.resetStreams();
|
verifier.resetStreams();
|
||||||
|
|
||||||
logFile = verifier.loadFile( verifier.getBasedir(), verifier.getLogFileName(), false );
|
logFile = verifier.loadFile( verifier.getBasedir(), verifier.getLogFileName(), false );
|
||||||
assertFalse( logFile.contains( "[WARNING] Profile with id: 'mng-3641-it-provided-profile' has not been activated." ) );
|
assertFalse( logFile.contains( "Profile with id: 'mng-3641-it-provided-profile' has not been activated." ) );
|
||||||
assertTrue( logFile.contains( "[WARNING] Profile with id: 'mng-3641-TWlzdGVyIFQgd2FzIGhlcmUuICheX14p' has not been activated." ) );
|
assertTrue( logFile.contains( "Profile with id: 'mng-3641-TWlzdGVyIFQgd2FzIGhlcmUuICheX14p' has not been activated." ) );
|
||||||
|
|
||||||
// (4) Fourth run: make sure the warning is only printed when the profile is missing in all projects
|
// (4) Fourth run: make sure the warning is only printed when the profile is missing in all projects
|
||||||
verifier = new Verifier( testDir.getAbsolutePath() );
|
verifier = new Verifier( testDir.getAbsolutePath() );
|
||||||
|
@ -92,6 +92,6 @@ public class MavenITmng3641ProfileActivationWarningTest
|
||||||
verifier.resetStreams();
|
verifier.resetStreams();
|
||||||
|
|
||||||
logFile = verifier.loadFile( verifier.getBasedir(), verifier.getLogFileName(), false );
|
logFile = verifier.loadFile( verifier.getBasedir(), verifier.getLogFileName(), false );
|
||||||
assertFalse( logFile.contains( "[WARNING] Profile with id: 'mng-3641-it-provided-profile-child' has not been activated." ) );
|
assertFalse( logFile.contains( "Profile with id: 'mng-3641-it-provided-profile-child' has not been activated." ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue