aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/io/trygvis
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/io/trygvis')
-rwxr-xr-xsrc/test/java/io/trygvis/esper/testing/nexus/TestXmlParsing.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/test/java/io/trygvis/esper/testing/nexus/TestXmlParsing.java b/src/test/java/io/trygvis/esper/testing/nexus/TestXmlParsing.java
index c9aba8d..b52d894 100755
--- a/src/test/java/io/trygvis/esper/testing/nexus/TestXmlParsing.java
+++ b/src/test/java/io/trygvis/esper/testing/nexus/TestXmlParsing.java
@@ -19,14 +19,14 @@ public class TestXmlParsing extends TestCase {
assertEquals(132, list.size());
ArtifactXml artifact = list.get(0);
- assertEquals("org.codehaus.mojo.hibernate3", artifact.groupId);
- assertEquals("maven-hibernate3-jdk15", artifact.artifactId);
- assertEquals("2.0-alpha-1", artifact.version);
+ assertEquals("org.codehaus.mojo.hibernate3", artifact.id.groupId);
+ assertEquals("maven-hibernate3-jdk15", artifact.id.artifactId);
+ assertEquals("2.0-alpha-1", artifact.id.version);
artifact = list.get(4);
- assertEquals("org.codehaus.mojo.hibernate3", artifact.groupId);
- assertEquals("maven-hibernate3", artifact.artifactId);
- assertEquals("2.0-alpha-1", artifact.version);
+ assertEquals("org.codehaus.mojo.hibernate3", artifact.id.groupId);
+ assertEquals("maven-hibernate3", artifact.id.artifactId);
+ assertEquals("2.0-alpha-1", artifact.id.version);
assertEquals(2, artifact.hits.size());
assertEquals("appfuse-releases", artifact.hits.get(0).repositoryId);
assertEquals(1, artifact.hits.get(0).files.size());
@@ -37,10 +37,10 @@ public class TestXmlParsing extends TestCase {
ArrayList<ArtifactXml> filtered = newArrayList(filter(list, repositoryFilter("appfuse-releases")));
assertEquals(5, filtered.size());
- FlatArtifact flatArtifact = filtered.get(0).flatten("appfuse-releases");
- assertEquals("org.codehaus.mojo.hibernate3", flatArtifact.groupId);
- assertEquals("maven-hibernate3-jdk15", flatArtifact.artifactId);
- assertEquals("2.0-alpha-1", flatArtifact.version);
+ FlatArtifact flatArtifact = filtered.get(0).flatten("appfuse-releases").some();
+ assertEquals("org.codehaus.mojo.hibernate3", flatArtifact.id.groupId);
+ assertEquals("maven-hibernate3-jdk15", flatArtifact.id.artifactId);
+ assertEquals("2.0-alpha-1", flatArtifact.id.version);
assertEquals(2, flatArtifact.files.size());
}
}