void testNoRecreateZipfilesetExcludesWithUpdate() { testNoRecreate("testNoRecreateZipfilesetExcludesWithUpdate"); } public void testNoRecreateZipfilesetExcludesWithoutUpdate() { testNoRecreate("testNoRecreateZipfilesetExcludesWithoutUpdate"); } public void testRecreateZipfilesetWithoutUpdateAdditionalFiles() { testRecreate("test4", "testRecreateZipfilesetWithoutUpdateAdditionalFiles"); } public void testRecreateZipfilesetWithUpdateAdditionalFiles() { testRecreate("test4", "testRecreateZipfilesetWithUpdateAdditionalFiles"); }
void tearDown() { executeTarget("cleanup"); } /** make sure tokenfilter exists */ public void testTokenfilter() throws IOException { executeTarget("tokenfilter"); } public void testTrimignore() throws IOException { expectLogContaining("trimignore", "Hello-World"); } public void testStringTokenizer() throws IOException { expectLogContaining( "stringtokenizer", "#This#is#a#number#of#words#"); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/JarTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/filters/TokenFilterTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testNoRecreateZipfilesetExcludesWithUpdate() {
1
void tearDown() {
2
        executeTarget("cleanup");
2
    
3
    }
3
    testNoRecreate("testNoRecreateZipfilesetExcludesWithUpdate");
4
    
4
    }
5
/** make sure tokenfilter exists */
5
    public void testNoRecreateZipfilesetExcludesWithoutUpdate() {
6
    public void test
6
        testNoRecreate("testNoRecreateZipfilesetExcludesWithoutUpdate
7
Tokenfilter() throws IOException {
7
");
8
        executeTarget("tokenfilter");
8
    }
9
    }
9
    public void testRecreateZipfilesetWithoutUpdateAdditionalFiles() {
10
    public void test
10
        testRecreate("test4",
11
                     "testRecreateZipfilesetWithoutUpdateAdditionalFiles");
12
    }
13
    public void testRecreateZipfilesetWithUpdateAdditionalFiles() {
14
        testRecreate("test4",
15
                     "testRecreateZipfilesetWithUpdateAdditionalFiles
11
Trimignore() throws IOException {
12
        expectLogContaining("trimignore", "Hello-World");
13
    }
14
    public void testStringTokenizer() throws IOException {
15
        expectLogContaining(
16
");
16
            "stringtokenizer", "#This#is#a#number#of#words#");
17
    }
17
    }
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