void testTaskThatDoesntReallyExist() { expectPropertyUnset("testTaskThatDoesntReallyExist", "testTaskThatDoesntReallyExist"); } public void testType() { expectPropertySet("testType", "testType"); } public void testPreset() { expectPropertySet("testPreset", "testPreset");
void testXml() { expectOutputContaining( "xml", "<DependsUpon>"); } /** * Test fork * - forked output goes to log */ public void testFork() { expectLogContaining( "fork", "Package: org.apache.tools.ant.util.facade"); } /** * Test fork xml */ public void testForkXml() { expectLogContaining( "fork-xml", "<DependsUpon>");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/condition/TypeFoundTest.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 testTaskThatDoesntReallyExist() {
1
void test
2
        expectPropertyUnset("testTaskThatDoesntReallyExist", "testTaskThatDoesntReallyExist");
2
Xml() {
3
        expectOutputContaining(
4
            "xml", "<DependsUpon>");
5
    }
6
    /**
7
     * Test fork
8
     * - forked output goes to log
3
    }
9
    
10
 */
4
    public void testType() {
11
    public void testFork() {
5
        expectPropertySet("testType", "testType");
12
        expect
6
    }
13
LogContaining(
14
            "fork", "Package: org.apache.tools.ant.util.facade");
15
    }
16
    /**
17
     * Test fork xml
18
     */
7
    public void testPreset() {
19
    public void testForkXml() {
8
        expectPropertySet("testPreset", "testPreset
20
        expectLogContaining(
9
");
21
            "fork-xml", "<DependsUpon>");
10
    
22
    
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