void testSimple() { expectOutputContaining( "simple", "Package: org.apache.tools.ant.util.facade"); } /** * Test xml */ public 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>");
void testTaskThatIsntDefined() { expectPropertyUnset("testTaskThatIsntDefined", "testTaskThatIsntDefined"); } public void testTaskThatDoesntReallyExist() { expectPropertyUnset("testTaskThatDoesntReallyExist", "testTaskThatDoesntReallyExist"); } public void testType() { expectPropertySet("testType", "testType"); } public void testPreset() { expectPropertySet("testPreset", "testPreset");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/condition/TypeFoundTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testSimple() {
1
void test
2
        expectOutputContaining(
3
            "simple", "Package: org.apache.tools.ant.util.facade");
4
    }
5
    /**
6
     * Test xml
7
     */
8
    public void testXml() {
9
        expectOutputContaining(
10
            "xml", "<DependsUpon>");
11
    }
12
    /**
13
     * Test fork
14
     * - forked output goes to log
2
TaskThatIsntDefined() {
3
        expectPropertyUnset("testTaskThatIsntDefined", "testTaskThatIsntDefined");
4
    }
5
    public void testTaskThatDoesntReallyExist() {
6
        expectPropertyUnset("testTaskThatDoesntReallyExist", "testTaskThatDoesntReallyExist");
15
     */
7
    }
16
    public void testFork() {
8
    public void testType() {
17
        expectLogContaining(
9
        expect
18
            "fork", "Package: org.apache.tools.ant.util.facade");
19
    }
20
    /**
21
     * Test fork xml
22
     */
10
PropertySet("testType", "testType");
11
    }
23
    public void testForkXml() {
12
    public void testPreset() {
24
        expectLogContaining(
13
        expect
25
            "fork-xml", "<DependsUpon>");
14
PropertySet("testPreset", "testPreset");
26
    
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