ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r937087 - /ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/resolver/PackagerResolverTest.java
Date Thu, 22 Apr 2010 22:27:09 GMT
Author: maartenc
Date: Thu Apr 22 22:27:08 2010
New Revision: 937087

URL: http://svn.apache.org/viewvc?rev=937087&view=rev
Log:
Improved test to check that something has been unzipped/untarred at all...

Modified:
    ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/resolver/PackagerResolverTest.java

Modified: ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/resolver/PackagerResolverTest.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/resolver/PackagerResolverTest.java?rev=937087&r1=937086&r2=937087&view=diff
==============================================================================
--- ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/resolver/PackagerResolverTest.java
(original)
+++ ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/resolver/PackagerResolverTest.java
Thu Apr 22 22:27:08 2010
@@ -217,6 +217,10 @@ public class PackagerResolverTest extend
             Artifact artifact = new DefaultArtifact(mrid, rmr.getPublicationDate(), "A",
"jar", "jar");
             resolver.download(new Artifact[] {artifact}, downloadOptions());
             
+            // assert that the file A.jar is extracted from the archive
+            File jar = new File(_builddir, "org/A/1.0/artifacts/jars/A.jar");
+            assertTrue(jar.exists());
+            
             // assert that the file README is not extracted from the archive
             File readme = new File(_builddir, "org/A/1.0/extract/A-1.0/README");
             assertFalse(readme.exists());
@@ -259,6 +263,10 @@ public class PackagerResolverTest extend
             Artifact artifact = new DefaultArtifact(mrid, rmr.getPublicationDate(), "B",
"jar", "jar");
             resolver.download(new Artifact[] {artifact}, downloadOptions());
             
+            // assert that the file B.jar is extracted from the archive
+            File jar = new File(_builddir, "org/B/1.0/artifacts/jars/B.jar");
+            assertTrue(jar.exists());
+            
             // assert that the file README is not extracted from the archive
             File readme = new File(_builddir, "org/B/1.0/extract/B-1.0/README");
             assertFalse(readme.exists());



Mime
View raw message