void testNoRecreateBasedirExcludesWithUpdate() { testNoRecreate("testNoRecreateBasedirExcludesWithUpdate"); } public void testNoRecreateBasedirExcludesWithoutUpdate() { testNoRecreate("testNoRecreateBasedirExcludesWithoutUpdate"); } public void testNoRecreateZipfilesetExcludesWithUpdate() { testNoRecreate("testNoRecreateZipfilesetExcludesWithUpdate"); } public void testNoRecreateZipfilesetExcludesWithoutUpdate() { testNoRecreate("testNoRecreateZipfilesetExcludesWithoutUpdate"); } public void testRecreateZipfilesetWithoutUpdateAdditionalFiles() { testRecreate("test4", "testRecreateZipfilesetWithoutUpdateAdditionalFiles"); } public void testRecreateZipfilesetWithUpdateAdditionalFiles() { testRecreate("test4", "testRecreateZipfilesetWithUpdateAdditionalFiles"); } public void testRecreateZipfilesetWithoutUpdateNewerFile() { testRecreate("testRecreateNewerFileSetup", "testRecreateZipfilesetWithoutUpdateNewerFile");
void testAddPath() { executeTarget("addpath"); } public void testAddCondition() { executeTarget("addcondition"); } public void testAddFilter() { executeTarget("addfilter"); } public void testAddSelector() { executeTarget("addselector"); } public void testNestedA() { expectLogContaining("nested.a", "add A called"); } public void testNestedB() { expectLogContaining("nested.b", "add B called"); } public void testNestedC() { expectLogContaining("nested.c", "add C called");
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/types/AddTypeTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testNoRecreateBasedirExcludesWithUpdate() {
1
void test
2
        testNoRecreate("testNoRecreateBasedirExcludesWithUpd
2
AddPath() {
3
ate");
3
        executeTarget("addpath");
4
    }
4
    }
5
    public void testNoRecreateBasedirExcludesWithoutUpdate() {
5
    public void test
6
        testNoRecreate("testNoRecreateBasedirExcludesWithoutUpdate");
7
    }
8
    public void testNoRecreateZipfilesetExcludesWithUpdate() {
9
        testNoRecreate("testNoRecreateZipfilesetExcludesWithUpdate");
10
    }
11
    public void testNoRecreateZipfilesetExcludesWithoutUpdate() {
12
        testNoRecreate("testNoRecreateZipfilesetExcludesWithoutUpdate");
13
    }
14
    public void testRecreateZipfilesetWithoutUpdateAdditionalFiles() {
15
        testRecreate
6
AddCondition() {
7
        executeTarget("addcondition");
8
    }
9
    public void testAddFilter() {
10
        executeTarget("addfilter");
11
    }
12
    public void testAddSelector() {
13
        executeTarget("addselector");
14
    }
15
    public void testNestedA() {
16
("test4",
16
        expectLogContaining("nest
17
                     "testRecreateZipfilesetWithoutUpdateAdditionalFiles");
17
ed.a", "add A called");
18
    }
18
    }
19
    public void testRecreateZipfilesetWithUpdateAdditionalFiles() {
19
    public void test
20
        testRecreate
20
NestedB() {
21
("test4",
21
        expectLogContaining("nest
22
                     "testRecreateZipfilesetWithUpdateAdditionalFiles");
22
ed.b", "add B called");
23
    }
23
    }
24
    public void testRecreateZipfilesetWithoutUpdateNewerFile() {
24
    public void test
25
        testRecreate
25
NestedC() {
26
("testRecreateNewerFileSetup",
26
        expectLogContaining("nest
27
                     "testRecreateZipfilesetWithoutUpdateNewerFile");
27
ed.c", "add C called");
28
    
28
    
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