void testNegationFalse() { expectPropertyUnset("negationfalse","negationfalse"); } public void testNegationIncomplete() { expectSpecificBuildException("negationincomplete", "no conditions in <not>", "You must nest a condition into <not>"); } public void testAnd() { expectPropertySet("and","and");
void testTask() { expectPropertySet("testTask", "testTask"); } public void testUndefined() { expectBuildExceptionContaining("testUndefined","left out the name attribute", "No type specified"); } public void testTaskThatIsntDefined() { expectPropertyUnset("testTaskThatIsntDefined", "testTaskThatIsntDefined");
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/condition/TypeFoundTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testNegationFalse() {
1
void testTask() {
2
        expectPropertyUnset("negationfalse","negationfalse");
2
        expectPropertySet("testTask", "testTask");
3
    }
3
    }
4
    public void testNegationIncomplete() {
4
    public void testUndefined() {
5
        expectSpecificBuildException("negationincomplete",
5
        expectBuildException
6
                                     "no conditions in <not>",
7
                                     "You must nest a condition into <not>");
6
Containing("testUndefined","left out the name attribute", "No type specified");
8
    }
7
    }
9
    public void testAnd() {
8
    public void testTaskThatIsntDefined() {
10
        expectPropertySet("and","and");
9
        expectPropertyUnset("testTaskThatIsntDefined", "testTaskThatIsntDefined");
11
    
10
    
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