void testRunFailFoeFork() { expectBuildExceptionContaining("testRunFailFoeFork", "java failures being propagated", "Java returned:"); } public void testExcepting() { expectLogContaining("testExcepting", "Exception raised inside called program"); } public void testExceptingFork() { expectLogContaining("testExceptingFork", "Java Result:");
void testUndefined() { expectBuildExceptionContaining("testUndefined","left out the name attribute", "No type specified"); } public void testTaskThatIsntDefined() { expectPropertyUnset("testTaskThatIsntDefined", "testTaskThatIsntDefined"); } public void testTaskThatDoesntReallyExist() { expectPropertyUnset("testTaskThatDoesntReallyExist", "testTaskThatDoesntReallyExist");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/JavaTest.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 testRunFailFoeFork() {
1
void testUndefined() {
2
        expectBuildExceptionContaining("testRunFailFoeFork",
2
        expectBuildExceptionContaining("test
3
            "java failures being propagated",
4
            "Java returned:");
3
Undefined","left out the name attribute", "No type specified");
5
    }
4
    }
6
    public void testExcepting() {
5
    public void test
7
        expectLogContaining("testExcepting",
8
                            "Exception raised inside called program
6
TaskThatIsntDefined() {
9
");
7
        expectPropertyUnset("testTaskThatIsntDefined", "testTaskThatIsntDefined");
10
    }
8
    }
11
    public void testExceptingFork() {
9
    public void test
12
        expectLogContaining("testExceptingFork",
13
                            "Java Result:
10
TaskThatDoesntReallyExist() {
14
");
11
        expectPropertyUnset("testTaskThatDoesntReallyExist", "testTaskThatDoesntReallyExist");
15
    
12
    
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