void testExceptingFork() { expectLogContaining("testExceptingFork", "Java Result:"); } public void testExceptingFoe() { expectBuildExceptionContaining("testExceptingFoe", "passes exception through", "Exception raised inside called program"); } public void testExceptingFoeFork() { expectBuildExceptionContaining("testExceptingFoeFork", "exceptions turned into error codes", "Java returned:"); }
void testBasic() { expectPropertySet("basic","basic"); } public void testConditionIncomplete() { expectSpecificBuildException("condition-incomplete", "property attribute has been omitted", "The property attribute is required."); } public void testConditionEmpty() { expectSpecificBuildException("condition-empty", "no conditions", "You must nest a condition into <condition>"); }
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/ConditionTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testExceptingFork() {
1
void testBasic() {
2
        expectLogContaining("testExceptingFork",
2
       expect
3
                            "Java Result:");
3
PropertySet("basic","basic");
4
    }
4
    }
5
    public void testExceptingFoe() {
5
    public void testConditionIncomplete() {
6
        expectBuildExceptionContaining("testExceptingFoe",
6
        expectSpecificBuildException
7
            "passes exception through",
8
            "Exception raised inside called program
7
("condition-incomplete",
8
                                     "property attribute has been omitted",
9
");
9
                                     "The property attribute is required.");
10
    }
10
    }
11
    public void testExceptingFoeFork() {
11
    public void testConditionEmpty() {
12
        expectBuildExceptionContaining("testExceptingFoeFork",
12
        expectSpecificBuildException
13
            "exceptions turned into error codes",
14
            "Java returned:
13
("condition-empty",
14
                                     "no conditions",
15
");
15
                                     "You must nest a condition into <condition>");
16
    }
16
    }
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