mirror of https://github.com/apache/maven.git
o fix test, invert the second condition
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@498161 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8c9f74fe21
commit
6f415cccbd
|
@ -67,13 +67,13 @@ public class MyMojo
|
|||
|
||||
if ( !username.equals( authInfo.getUserName() ) )
|
||||
{
|
||||
getLog().error( "Expected username: " + username + "; found: " + authInfo.getUserName() );
|
||||
getLog().error( "Expected username: '" + username + "'; found: '" + authInfo.getUserName() + "'" );
|
||||
throw new MojoExecutionException( "Expected username: " + username + "; found: " + authInfo.getUserName() );
|
||||
}
|
||||
|
||||
if ( password.equals( authInfo.getPassword() ) )
|
||||
if ( !password.equals( authInfo.getPassword() ) )
|
||||
{
|
||||
getLog().error( "Expected password: " + password + "; found: " + authInfo.getPassword() );
|
||||
getLog().error( "Expected password: '" + password + "'; found: '" + authInfo.getPassword() + "'" );
|
||||
throw new MojoExecutionException( "Expected password: " + password + "; found: " + authInfo.getPassword() );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue