mirror of https://github.com/apache/maven.git
Prepare IT of MNG-2741 for Wagon 3.4.0
This commit is contained in:
parent
df98cdb4ca
commit
0dc01ef157
|
@ -79,7 +79,7 @@ public class MavenITmng2741PluginMetadataResolutionErrorMessageTest
|
|||
List<String> lines = verifier.loadLines( verifier.getLogFileName(), "UTF-8" );
|
||||
for ( String line : lines )
|
||||
{
|
||||
sb.append( line ).append( System.getProperty( "line.separator" ) );
|
||||
sb.append( line ).append( System.lineSeparator() );
|
||||
if ( line.matches( ".*Connection refused.*" ) )
|
||||
{
|
||||
foundCause = true;
|
||||
|
@ -90,13 +90,13 @@ public class MavenITmng2741PluginMetadataResolutionErrorMessageTest
|
|||
foundCause = true;
|
||||
break;
|
||||
}
|
||||
if ( line.matches( ".*Transfer failed for http://localhost:54312/repo/.*/maven-metadata.xml.*" ) )
|
||||
if ( line.matches( ".*[Tt]ransfer failed for http://localhost:54312/repo/.*/maven-metadata.xml.*" ) )
|
||||
{
|
||||
foundCause = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
assertTrue( "Transfer error cause was not found : " + sb.toString(), foundCause );
|
||||
assertTrue( "Transfer error cause was not found: " + sb, foundCause );
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue