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 )
|
catch ( VerificationException e )
|
||||||
{
|
{
|
||||||
boolean foundCause = false;
|
boolean foundCause = false;
|
||||||
|
StringBuilder sb = new StringBuilder( );
|
||||||
List lines = verifier.loadLines( verifier.getLogFileName(), "UTF-8" );
|
List lines = verifier.loadLines( verifier.getLogFileName(), "UTF-8" );
|
||||||
for ( int i = 0; i < lines.size(); i++ )
|
for ( int i = 0; i < lines.size(); i++ )
|
||||||
{
|
{
|
||||||
String line = lines.get( i ).toString();
|
String line = lines.get( i ).toString();
|
||||||
|
sb.append( line ).append( System.getProperty( "line.separator" ) );
|
||||||
if ( line.matches( ".*Connection refused.*" ) )
|
if ( line.matches( ".*Connection refused.*" ) )
|
||||||
{
|
{
|
||||||
foundCause = true;
|
foundCause = true;
|
||||||
break;
|
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
|
finally
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue