void testTwoPatternSets() { executeTarget("testTwoPatternSets"); assertFileMissing("1/foo is not included", "unziptestout/1/foo"); assertFileExists("2/bar is included", "unziptestout/2/bar"); } /* * PR 38973 */ public void testTwoPatternSetsWithExcludes() { executeTarget("testTwoPatternSetsWithExcludes"); assertFileMissing("1/foo is not included", "unziptestout/1/foo"); assertFileMissing("2/bar is excluded", "unziptestout/2/bar");
void testPatternSetIncludeOnly() { executeTarget("testPatternSetIncludeOnly"); assertFileMissing("1/foo is not included", "unziptestout/1/foo"); assertFileExists("2/bar is included", "unziptestout/2/bar"); } /* * PR 11100 */ public void testPatternSetIncludeAndExclude() { executeTarget("testPatternSetIncludeAndExclude"); assertFileMissing("1/foo is not included", "unziptestout/1/foo"); assertFileMissing("2/bar is excluded", "unziptestout/2/bar");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/UnzipTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/UnzipTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testTwoPatternSets() {
1
void testPatternSetIncludeOnly() {
2
        executeTarget("testTwoPatternSets");
2
        executeTarget("testPatternSetIncludeOnly");
3
        assertFileMissing("1/foo is not included", "unziptestout/1/foo");
3
        assertFileMissing("1/foo is not included", "unziptestout/1/foo");
4
        assertFileExists("2/bar is included", "unziptestout/2/bar");
4
        assertFileExists("2/bar is included", "unziptestout/2/bar");
5
    }
5
    }
6
    /*
6
    /*
7
     * PR 38973
7
     * PR 11100
8
     */
8
     */
9
    public void testTwoPatternSetsWithExcludes() {
9
    public void testPatternSetIncludeAndExclude() {
10
        executeTarget("testTwoPatternSetsWithExcludes");
10
        executeTarget("testPatternSetIncludeAndExclude");
11
        assertFileMissing("1/foo is not included", "unziptestout/1/foo");
11
        assertFileMissing("1/foo is not included", "unziptestout/1/foo");
12
        assertFileMissing("2/bar is excluded", "unziptestout/2/bar");
12
        assertFileMissing("2/bar is excluded", "unziptestout/2/bar");
13
    
13
    
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0