From e243a6fd6c444b451398ceb659ea4963a19122d0 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 24 Nov 2012 18:02:55 +0100 Subject: o Actually storing and deleting new/gone artifacts from Nexus. --- .../trygvis/esper/testing/nexus/TestXmlParsing.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/test/java') 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 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()); } } -- cgit v1.2.3