mirror of https://github.com/apache/maven.git
don't fail if the message has more details
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@1172141 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
81e0d48f61
commit
bb83f70ce0
|
@ -75,17 +75,25 @@ public class MavenITmng2741PluginMetadataResolutionErrorMessageTest
|
|||
catch ( VerificationException e )
|
||||
{
|
||||
boolean foundCause = false;
|
||||
StringBuilder sb = new StringBuilder( );
|
||||
List lines = verifier.loadLines( verifier.getLogFileName(), "UTF-8" );
|
||||
for ( int i = 0; i < lines.size(); i++ )
|
||||
{
|
||||
String line = lines.get( i ).toString();
|
||||
sb.append( line ).append( System.getProperty( "line.separator" ) );
|
||||
if ( line.matches( ".*Connection refused.*" ) )
|
||||
{
|
||||
foundCause = true;
|
||||
break;
|
||||
}
|
||||
if ( line.matches( ".*Connection to http://localhost:54312 refused.*" ) )
|
||||
{
|
||||
foundCause = true;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
assertTrue( "Transfer error cause was not found", foundCause );
|
||||
assertTrue( "Transfer error cause was not found : " + sb.toString(), foundCause );
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue