JUnitTaskTest(String name) { super(name); } /** * The JUnit setup method */ public void setUp() { configureProject("src/etc/testcases/taskdefs/optional/junit.xml"); } /** * The teardown method for JUnit */ public void tearDown() { executeTarget("cleanup"); } public void testCrash() { expectPropertySet("crash", "crashed");
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/optional/junit/JUnitTaskTest.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
JUnitTaskTest(String name) {
1
ConditionTest(String name) {
2
        super(name);
2
        super(name);
3
    }
3
    }
4
    /**
4
    /**
5
     * The JUnit setup method
5
     * The JUnit setup method
6
     */
6
     */
7
    public void setUp() {
7
    public void setUp() {
8
        configureProject("src/etc/testcases/taskdefs/optional/junit.xml");
8
        configureProject("src/etc/testcases/taskdefs/condition.xml");
9
    }
9
    }
10
    /**
10
    /**
11
     * The teardown method for JUnit
11
     * The teardown method for JUnit
12
     */
12
     */
13
    public void tearDown() {
13
    public void tearDown() {
14
        executeTarget("cleanup");
14
        executeTarget("cleanup");
15
    }
15
    }
16
    public void testCrash() {
16
    public void testBasic() {
17
       expectPropertySet("crash", "crashed");
17
       expectPropertySet("basic","basic");
18
    
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