void testRecreateZipfilesetWithoutUpdateAdditionalFiles() { testRecreate("test4", "testRecreateZipfilesetWithoutUpdateAdditionalFiles"); } public void testRecreateZipfilesetWithUpdateAdditionalFiles() { testRecreate("test4", "testRecreateZipfilesetWithUpdateAdditionalFiles"); } public void testRecreateZipfilesetWithoutUpdateNewerFile() { testRecreate("testRecreateNewerFileSetup", "testRecreateZipfilesetWithoutUpdateNewerFile"); } public void testRecreateZipfilesetWithUpdateNewerFile() { testRecreate("testRecreateNewerFileSetup", "testRecreateZipfilesetWithUpdateNewerFile");
void testFileSet() { expectLogContaining("fileset", "types.FileSet"); } public void testFileSetAntType() { expectLogContaining("fileset-ant-type", "types.PolyTest$MyFileSet"); } public void testPath() { expectLogContaining("path", "types.Path"); } public void testPathAntType() { expectLogContaining("path-ant-type", "types.PolyTest$MyPath");
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/PolyTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testRecreateZipfilesetWithoutUpdateAdditionalFiles() {
1
void test
2
        testRecreate("test4",
3
                     "testRecreateZipfilesetWithoutUpdateAdditional
2
FileSet() {
4
Files");
3
        expectLogContaining("fileset", "types.FileSet");
5
    }
4
    }
6
    public void testRecreateZipfilesetWithUpdateAdditionalFiles() {
5
    public void testFileSet
7
        testRecreate("test4",
8
                     "testRecreateZipfilesetWithUpdateAdditional
6
AntType() {
9
Files");
7
        expectLogContaining("fileset-ant-type", "types.PolyTest$MyFileSet");
10
    }
8
    }
11
    public void testRecreateZipfilesetWithoutUpdateNewerFile() {
9
    public void test
12
        testRecreate("testRecreateNewerFileSetup",
13
                     "testRecreateZipfilesetWithoutUpdateNewerFile");
14
    }
15
    public void testRecreateZipfilesetWithUpdateNewerFile() {
16
        testRecreate("testRecreateNewerFileSetup",
17
                     "testRecreateZipfilesetWithUpdateNewerFile
10
Path() {
11
        expectLogContaining("path", "types.Path");
12
    }
13
    public void testPathAntType() {
18
");
14
        expectLogContaining("path-ant-type", "types.PolyTest$MyPath");
19
    
15
    
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