void testMapperFileset() { executeTarget("testMapperFileset"); } public void testDestDirPath() { executeTarget("testDestDirPath"); } public void testMapperPath() { executeTarget("testMapperPath"); } public void testMapperNoDest() { expectBuildExceptionContaining("testMapperNoDest", "two mappers", SignJar.ERROR_MAPPER_WITHOUT_DEST); }
void NotestForking() throws Exception { executeTarget("testForking"); } /** * test the forking compiler */ public void testForkingAntClasspath() throws Exception { executeTarget("testForkingAntClasspath"); } /** * test the forking compiler */ public void testAntClasspath() throws Exception { executeTarget("testAntClasspath"); } /** * A unit test for JUnit */ public void testBadName() throws Exception { expectBuildExceptionContaining("testBadName", "compiler not known", RmicAdapterFactory.ERROR_UNKNOWN_COMPILER); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/SignJarTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/RmicAdvancedTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testMapperFileset() {
1
void NotestForking() throws Exception {
2
        executeTarget("testMapperFileset");
2
        executeTarget("testForking");
3
    }
3
    }
4
    public void testDestDirPath()
4
    /**
5
     * test the forking compiler
6
     */
5
 {
7
    public void testForkingAntClasspath() throws Exception {
6
        executeTarget("testDestDirPath");
8
        executeTarget("testForkingAntClasspath");
7
    }
9
    }
8
    public void testMapperPath()
10
    /**
11
     * test the forking compiler
12
     */
9
 {
13
    public void testAntClasspath() throws Exception {
10
        executeTarget("testMapperPath");
14
        executeTarget("testAntClasspath");
11
    }
15
    }
12
    public void testMapperNoDest()
16
    /**
17
     * A unit test for JUnit
18
     */
13
 {
19
    public void testBadName() throws Exception {
14
        expectBuildExceptionContaining("testMapperNoDest",
20
        expectBuildExceptionContaining("testBadName",
15
                "two mappers",
21
                "compiler not known",
16
                SignJar.ERROR_MAPPER_WITHOUT_DEST);
22
                RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
17
    }
23
    }
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