diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-11-24 18:02:55 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-11-24 18:02:55 +0100 |
commit | e243a6fd6c444b451398ceb659ea4963a19122d0 (patch) | |
tree | 532ca0710468deee4e6fa076546a2d53f1cff498 /src/test | |
parent | cac8228f38136cfc41673458c58c25f168b1e1ff (diff) | |
download | esper-testing-e243a6fd6c444b451398ceb659ea4963a19122d0.tar.gz esper-testing-e243a6fd6c444b451398ceb659ea4963a19122d0.tar.bz2 esper-testing-e243a6fd6c444b451398ceb659ea4963a19122d0.tar.xz esper-testing-e243a6fd6c444b451398ceb659ea4963a19122d0.zip |
o Actually storing and deleting new/gone artifacts from Nexus.
Diffstat (limited to 'src/test')
-rwxr-xr-x | src/test/java/io/trygvis/esper/testing/nexus/TestXmlParsing.java | 20 |
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()); } } |