void testOrboth() { expectPropertySet("orboth","orboth"); } public void testFilesmatchIdentical() { expectPropertySet("filesmatch-identical","filesmatch-identical"); } public void testFilesmatchIncomplete() { expectSpecificBuildException("filesmatch-incomplete", "Missing file2 attribute", "both file1 and file2 are required in filesmatch"); }
void testOverrideDefault() { expectLog( "override.default", "value is new"); } public void testImplicit() { expectLog( "implicit", "Before implicitIn implicitAfter implicit"); } public void testImplicitNotOptional() { expectSpecificBuildException( "implicit.notoptional", "Missing nested elements for implicit element implicit", "Missing nested elements for implicit element implicit"); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ConditionTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/MacroDefTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testOrboth() {
1
void testOverrideDefault() {
2
        expectPropertySet("orboth","orboth
2
        expectLog(
3
            "override.default",
3
");
4
            "value is new");
4
    }
5
    }
5
    public void testFilesmatchIdentical() {
6
    public void test
6
        expectPropertySet("filesmatch-identical","filesmatch-identical
7
Implicit() {
8
        expectLog(
7
");
9
            "implicit", "Before implicitIn implicitAfter implicit");
8
    }
10
    }
9
    public void testFilesmatchIncomplete() {
11
    public void testImplicitNotOptional() {
10
        expectSpecificBuildException("filesmatch-incomplete",
12
        expectSpecificBuildException(
11
                                     "Missing file2 attribute",
12
                                     "both file1 and file2 are required in filesmatch
13
            "implicit.notoptional",
14
            "Missing nested elements for implicit element implicit",
13
");
15
            "Missing nested elements for implicit element implicit");
14
    }
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