mirror of https://github.com/apache/archiva.git
make test order independant
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@442226 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
101210c5ed
commit
d1a72cddd5
|
@ -92,13 +92,36 @@ public class BadMetadataReportProcessorTest
|
||||||
Result result = (Result) failures.next();
|
Result result = (Result) failures.next();
|
||||||
assertEquals( "check reason", "Missing lastUpdated element inside the metadata.", result.getReason() );
|
assertEquals( "check reason", "Missing lastUpdated element inside the metadata.", result.getReason() );
|
||||||
result = (Result) failures.next();
|
result = (Result) failures.next();
|
||||||
assertEquals( "check reason",
|
boolean alpha1First = false;
|
||||||
"Artifact version 1.0-alpha-1 found in the repository but missing in the metadata.",
|
if ( result.getReason().indexOf( "alpha-1" ) > 0 )
|
||||||
result.getReason() );
|
{
|
||||||
|
alpha1First = true;
|
||||||
|
}
|
||||||
|
if ( alpha1First )
|
||||||
|
{
|
||||||
|
assertEquals( "check reason",
|
||||||
|
"Artifact version 1.0-alpha-1 found in the repository but missing in the metadata.",
|
||||||
|
result.getReason() );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
assertEquals( "check reason",
|
||||||
|
"Artifact version 1.0-alpha-2 found in the repository but missing in the metadata.",
|
||||||
|
result.getReason() );
|
||||||
|
}
|
||||||
result = (Result) failures.next();
|
result = (Result) failures.next();
|
||||||
assertEquals( "check reason",
|
if ( !alpha1First )
|
||||||
"Artifact version 1.0-alpha-2 found in the repository but missing in the metadata.",
|
{
|
||||||
result.getReason() );
|
assertEquals( "check reason",
|
||||||
|
"Artifact version 1.0-alpha-1 found in the repository but missing in the metadata.",
|
||||||
|
result.getReason() );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
assertEquals( "check reason",
|
||||||
|
"Artifact version 1.0-alpha-2 found in the repository but missing in the metadata.",
|
||||||
|
result.getReason() );
|
||||||
|
}
|
||||||
assertFalse( "check no more failures", failures.hasNext() );
|
assertFalse( "check no more failures", failures.hasNext() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue