aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-reports-standard
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2006-09-11 14:11:50 +0000
committerBrett Porter <brett@apache.org>2006-09-11 14:11:50 +0000
commitd1a72cddd58091896c75fb65fb6afbbf313895ac (patch)
tree6b934d627a6e5caed29b6e5e84fb569c682e224b /archiva-reports-standard
parent101210c5edc4311add6e25c9149e609ee5b22dd7 (diff)
downloadarchiva-d1a72cddd58091896c75fb65fb6afbbf313895ac.tar.gz
archiva-d1a72cddd58091896c75fb65fb6afbbf313895ac.zip
make test order independant
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@442226 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-reports-standard')
-rw-r--r--archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/BadMetadataReportProcessorTest.java35
1 files changed, 29 insertions, 6 deletions
diff --git a/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/BadMetadataReportProcessorTest.java b/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/BadMetadataReportProcessorTest.java
index 493d5198a..cd9400a31 100644
--- a/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/BadMetadataReportProcessorTest.java
+++ b/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/BadMetadataReportProcessorTest.java
@@ -92,13 +92,36 @@ public class BadMetadataReportProcessorTest
Result result = (Result) failures.next();
assertEquals( "check reason", "Missing lastUpdated element inside the metadata.", result.getReason() );
result = (Result) failures.next();
- assertEquals( "check reason",
- "Artifact version 1.0-alpha-1 found in the repository but missing in the metadata.",
- result.getReason() );
+ boolean alpha1First = false;
+ if ( result.getReason().indexOf( "alpha-1" ) > 0 )
+ {
+ 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();
- assertEquals( "check reason",
- "Artifact version 1.0-alpha-2 found in the repository but missing in the metadata.",
- result.getReason() );
+ 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() );
+ }
assertFalse( "check no more failures", failures.hasNext() );
}