public SOSTest(String s) { super(s); } /** * The JUnit setup method * * @throws Exception */ protected void setUp() throws Exception { project = new Project(); project.setBasedir("."); } /** * The teardown method for JUnit * * @throws Exception */ protected void tearDown() throws Exception { File file = new File(project.getBaseDir(), LOCAL_PATH); if (file.exists()) { file.delete()
public MSVSSTest(String s) { super(s); } /** * The JUnit setup method * * @throws Exception */ protected void setUp() throws Exception { project = new Project(); project.setBasedir("."); } /** * The teardown method for JUnit * * @throws Exception */ protected void tearDown() throws Exception { File file = new File(project.getBaseDir(), LOCAL_PATH); if (file.exists()) { file.delete()
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/sos/SOSTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/vss/MSVSSTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public SOSTest(String s) {
1
public MSVSSTest(String s) {
2
        super(s);
2
        super(s);
3
    }
3
    }
4
    /**
4
    /**
5
     *  The JUnit setup method
5
     *  The JUnit setup method
6
     *
6
     *
7
     * @throws  Exception
7
     * @throws  Exception
8
     */
8
     */
9
    protected void setUp()
9
    protected void setUp()
10
        throws Exception {
10
        throws Exception {
11
        project = new Project();
11
        project = new Project();
12
        project.setBasedir(".");
12
        project.setBasedir(".");
13
    }
13
    }
14
    /**
14
    /**
15
     *  The teardown method for JUnit
15
     *  The teardown method for JUnit
16
     *
16
     *
17
     * @throws  Exception
17
     * @throws  Exception
18
     */
18
     */
19
    protected void tearDown()
19
    protected void tearDown()
20
        throws Exception {
20
        throws Exception {
21
        File file = new File(project.getBaseDir(), LOCAL_PATH);
21
        File file = new File(project.getBaseDir(), LOCAL_PATH);
22
        if (file.exists()) {
22
        if (file.exists()) {
23
            file.delete()
23
            file.delete()
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