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:
Jason van Zyl 2007-01-20 19:59:38 +00:00
parent 8c9f74fe21
commit 6f415cccbd
1 changed files with 3 additions and 3 deletions

View File

@ -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() );
}
}