mirror of
https://github.com/apache/maven.git
synced 2025-02-07 18:49:20 +00:00
[MNG-7051] When an optional profile could not be found, an info message should be thrown instead of a warning.
This commit is contained in:
parent
a469fd5823
commit
e3a74e940b
@ -72,7 +72,7 @@ public void testActivatingNonExistingProfileWithQuestionMarkDoesNotBreak() throw
|
||||
|
||||
verifier.executeGoal( "validate" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.verifyTextInLog( "[WARNING] The requested optional profiles [non-existing-profile] could not be activated or deactivated because they do not exist." );
|
||||
verifier.verifyTextInLog( "[INFO] The requested optional profiles [non-existing-profile] could not be activated or deactivated because they do not exist." );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -89,7 +89,7 @@ public void testActivatingExistingAndNonExistingProfiles() throws IOException, V
|
||||
|
||||
verifier.executeGoal( "validate" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.verifyTextInLog( "[WARNING] The requested optional profiles [non-existing-profile] could not be activated or deactivated because they do not exist." );
|
||||
verifier.verifyTextInLog( "[INFO] The requested optional profiles [non-existing-profile] could not be activated or deactivated because they do not exist." );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -106,7 +106,7 @@ public void testDeactivatingNonExistingProfileWithQuestionMarkDoesNotBreak() thr
|
||||
|
||||
verifier.executeGoal( "validate" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.verifyTextInLog( "[WARNING] The requested optional profiles [non-existing-profile] could not be activated or deactivated because they do not exist." );
|
||||
verifier.verifyTextInLog( "[INFO] The requested optional profiles [non-existing-profile] could not be activated or deactivated because they do not exist." );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -123,6 +123,6 @@ public void testDeactivatingExistingAndNonExistingProfiles() throws IOException,
|
||||
|
||||
verifier.executeGoal( "validate" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.verifyTextInLog( "[WARNING] The requested optional profiles [non-existing-profile] could not be activated or deactivated because they do not exist." );
|
||||
verifier.verifyTextInLog( "[INFO] The requested optional profiles [non-existing-profile] could not be activated or deactivated because they do not exist." );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user