void setUp() { configureProject("src/etc/testcases/taskdefs/conditions/typefound.xml"); } public void testTask() { expectPropertySet("testTask", "testTask"); } public void testUndefined() { expectBuildExceptionContaining("testUndefined","left out the name attribute", "No type specified");
void tearDown() { executeTarget("cleanup"); } public void testBasic() { expectPropertySet("basic","basic"); } public void testConditionIncomplete() { expectSpecificBuildException("condition-incomplete", "property attribute has been omitted", "The property attribute is required.");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/condition/TypeFoundTest.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 setUp() {
1
void tearDown() {
2
        configureProject("src/etc/testcases/taskdefs/conditions/typefound.xml");
2
        executeTarget("cleanup");
3
    }
3
    }
4
    public void testTask() {
4
    public void testBasic() {
5
        expectPropertySet("testTask", "testTask");
5
       expectPropertySet("basic","basic");
6
    }
6
    }
7
    public void testUndefined() {
7
    public void testConditionIncomplete() {
8
        expectBuildExceptionContaining("testUndefined","left out the name attribute", "No type specifi
8
        expectSpecificBuildException("condition-incomplete",
9
                                     "property attribute has been omitted",
9
ed");
10
                                     "The property attribute is required.");
10
    
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