void testRecreateZipfilesetWithoutUpdateAdditionalFiles() { testRecreate("test4", "testRecreateZipfilesetWithoutUpdateAdditionalFiles"); } public void testRecreateZipfilesetWithUpdateAdditionalFiles() { testRecreate("test4", "testRecreateZipfilesetWithUpdateAdditionalFiles"); } public void testRecreateZipfilesetWithoutUpdateNewerFile() { testRecreate("testRecreateNewerFileSetup", "testRecreateZipfilesetWithoutUpdateNewerFile"); } public void testRecreateZipfilesetWithUpdateNewerFile() { testRecreate("testRecreateNewerFileSetup", "testRecreateZipfilesetWithUpdateNewerFile");
void testFork() { expectLogContaining( "fork", "Package: org.apache.tools.ant.util.facade"); } /** * Test fork xml */ public void testForkXml() { expectLogContaining( "fork-xml", "<DependsUpon>"); } /** * Test timeout */ public void testTimeout() { expectLogContaining( "fork-timeout", "JDepend FAILED - Timed out"); } /** * Test timeout without timing out */ public void testTimeoutNot() { expectLogContaining( "fork-timeout-not", "Package: org.apache.tools.ant.util.facade");
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/taskdefs/optional/jdepend/JDependTest.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
                     "testRecreateZipfilesetWithoutUpdateAdditionalFiles");
4
    }
5
    public void testRecreateZipfilesetWithUpdateAdditionalFiles() {
6
        testRecreate("test4",
7
                     "testRecreateZipfilesetWithUpdateAdditionalFiles");
8
    }
9
    public void testRecreateZipfilesetWithoutUpdateNewerFile() {
10
        testRecreate("testRecreateNewerFileSetup",
11
                     "testRecreateZipfilesetWithoutUpdateNewerFile");
2
Fork() {
3
        expectLogContaining(
4
            "fork", "Package: org.apache.tools.ant.util.facade");
5
    }
6
    /**
7
     * Test fork xml
8
     */
9
    public void testForkXml() {
10
        expectLogContaining(
11
            "fork-xml", "<DependsUpon>");
12
    }
13
    /**
14
     * Test timeout
15
     */
16
    public void testTimeout() {
17
        expectLogContaining(
18
            "fork-timeout", "JDepend FAILED - Timed out");
19
    }
20
    /**
21
     * Test timeout without timing out
12
    }
22
    
23
 */
13
    public void testRecreateZipfilesetWithUpdateNewerFile() {
24
    public void test
14
        testRecreate("testRecreateNewerFileSetup",
15
                     "testRecreateZipfilesetWithUpdateNewerFil
25
TimeoutNot() {
26
        expectLogContaining(
16
e");
27
            "fork-timeout-not", "Package: org.apache.tools.ant.util.facade");
17
    
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