void testFilesmatchIncomplete() { expectSpecificBuildException("filesmatch-incomplete", "Missing file2 attribute", "both file1 and file2 are required in filesmatch"); } public void testFilesmatchOddsizes() { expectPropertyUnset("filesmatch-oddsizes","filesmatch-oddsizes"); } public void testFilesmatchExistence() { expectPropertyUnset("filesmatch-existence", "filesmatch-existence"); } public void testFilesmatchDifferent() { expectPropertyUnset("filesmatch-different","filesmatch-different");
void testNestedAB() { expectBuildExceptionContaining( "nested.ab", "Should have got ambiguous", "ambiguous"); } public 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/ConditionTest.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 testFilesmatchIncomplete() {
1
void testNestedAB() {
2
        expectSpecificBuildException("filesmatch-incomplete",
2
        expectBuildException
3
                                     "Missing file2 attribute",
4
                                     "both file1 and file2 are required in filesmatch
3
Containing(
5
");
4
            "nested.ab", "Should have got ambiguous", "ambiguous");
6
    }
5
    }
7
    public void testFilesmatchOddsizes() {
6
    public void testConditionType() {
8
        expectPropertyUnset("filesmatch-oddsizes","filesmatch-oddsizes");
7
        expectLogContaining("condition.type", "beforeafter");
9
    }
8
    }
10
    public void testFilesmatchExistence() {
9
    public void test
11
        expectPropertyUnset("filesmatch-existence", "filesmatch-existence
10
ConditionTask() {
12
");
11
        expectLogContaining("condition.task", "My Condition execution");
13
    }
12
    }
14
    public void testFilesmatchDifferent() {
13
    public void test
15
        expectPropertyUnset("filesmatch-different","filesmatch-different
14
ConditionConditionType() {
16
");
15
        expectLogContaining("condition.condition.type", "My Condition eval");
17
    
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