AntStructureTest(String name) { super(name); } public void setUp() { configureProject("src/etc/testcases/taskdefs/antstructure.xml"); } public void tearDown() { executeTarget("tearDown"); } public void test1() { expectBuildException("test1", "required argument not specified");
ConditionTest(String name) { super(name); } /** * The JUnit setup method */ public void setUp() { configureProject("src/etc/testcases/taskdefs/condition.xml"); } /** * The teardown method for JUnit */ public void tearDown() { executeTarget("cleanup"); } public void testBasic() { expectPropertySet("basic","basic");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/AntStructureTest.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
AntStructureTest(String name) {
1
ConditionTest(String name) {
2
        super(name);
2
        super(name);
3
    }
3
    }
4
    /**
5
     * The JUnit setup method
6
     */
4
    public void setUp() {
7
    public void setUp() {
5
        configureProject("src/etc/testcases/taskdefs/antstructure.xml");
8
        configureProject("src/etc/testcases/taskdefs/condition.xml");
6
    }
9
    }
10
    /**
11
     * The teardown method for JUnit
12
     */
7
    public void tearDown() {
13
    public void tearDown() {
8
        executeTarget("tearDown");
14
        executeTarget("cleanup");
9
    }
15
    }
10
    public void test1() {
16
    public void testBasic() {
11
        expectBuildException("test1", "required argument not specified");
17
       expectPropertySet("basic","basic");
12
    
18
    
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