void testBatchTestForkOnceToDir() { assertResultFilesExist("testBatchTestForkOnceToDir", ".xml"); } /** Bugzilla Report 32973 */ public void testBatchTestForkOnceExtension() { assertResultFilesExist("testBatchTestForkOnceExtension", ".foo"); } public void testBatchTestForkOnceCustomFormatter() { assertResultFilesExist("testBatchTestForkOnceCustomFormatter", "foo");
void testConditionType() { expectLogContaining("condition.type", "beforeafter"); } public void testConditionTask() { expectLogContaining("condition.task", "My Condition execution"); } public void testConditionConditionType() { expectLogContaining("condition.condition.type", "My Condition eval");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitTaskTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/AddTypeTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testBatchTestForkOnceToDir() {
1
void test
2
        assertResultFilesExist("testBatchTestForkOnceToDir", ".xml");
3
    }
4
    /** Bugzilla Report 32973 */
5
    public void testBatchTestForkOnceExtension() {
6
        assertResultFilesExist("testBatchTestForkOnceExtension", ".foo
2
ConditionType() {
3
        expectLogContaining("condition.type", "beforeafter");
4
    }
5
    public void testConditionTask() {
7
");
6
        expectLogContaining("condition.task", "My Condition execution");
8
    }
7
    }
9
    public void testBatchTestForkOnceCustomFormatter() {
8
    public void test
10
        assertResultFilesExist("testBatchTestForkOnceCustomFormatter", "foo
9
ConditionConditionType() {
11
");
10
        expectLogContaining("condition.condition.type", "My Condition eval");
12
    
11
    
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