Browse Source

more docs and tests

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@326639 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 19 years ago
parent
commit
976ce81377
2 changed files with 16 additions and 0 deletions
  1. +10
    -0
      src/etc/testcases/taskdefs/unzip.xml
  2. +6
    -0
      src/testcases/org/apache/tools/ant/taskdefs/UnzipTest.java

+ 10
- 0
src/etc/testcases/taskdefs/unzip.xml View File

@@ -134,4 +134,14 @@
</restrict> </restrict>
</unzip> </unzip>
</target> </target>

<target name="testDocumentationClaimsOnCopy" depends="prepareTestZip">
<copy todir="unziptestout" preservelastmodified="true">
<zipfileset src="unziptest.zip">
<patternset>
<include name="2/"/>
</patternset>
</zipfileset>
</copy>
</target>
</project> </project>

+ 6
- 0
src/testcases/org/apache/tools/ant/taskdefs/UnzipTest.java View File

@@ -178,4 +178,10 @@ public class UnzipTest extends BuildFileTest {
assertFileExists("junit.jar has been extracted", assertFileExists("junit.jar has been extracted",
"unziptestout/junit/framework/Assert.class"); "unziptestout/junit/framework/Assert.class");
} }

public void testDocumentationClaimsOnCopy() {
executeTarget("testDocumentationClaimsOnCopy");
assertFileMissing("1/foo is excluded", "unziptestout/1/foo");
assertFileExists("2/bar is not excluded", "unziptestout/2/bar");
}
} }

Loading…
Cancel
Save