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