void testFileset() { executeTarget("testFileset"); } public void testFilesetAndJar() { executeTarget("testFilesetAndJar"); } public void testFilesetAndSignedJar() { expectBuildExceptionContaining("testFilesetAndSignedJar", "incompatible attributes", SignJar.ERROR_SIGNEDJAR_AND_PATHS); } public void testPath() { executeTarget("testPath");
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); } /** * load an adapter by name */ public void testExplicitClass() throws Exception { executeTarget("testExplicitClass");
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 testFileset() {
1
void testF
2
        executeTarget("testFileset");
3
    }
4
    public void testFilesetAndJar()
2
orkingAntClasspath() throws Exception {
3
        executeTarget("testForkingAntClasspath");
4
    }
5
    /**
6
     * test the forking compiler
7
     */
5
 {
8
    public void testAntClasspath() throws Exception {
6
        executeTarget("testFilesetAndJar");
9
        executeTarget("testAntClasspath");
7
    }
10
    }
8
    public void testFilesetAndSignedJar()
11
    /**
12
     * A unit test for JUnit
13
     */
9
 {
14
    public void testBadName() throws Exception {
10
        expectBuildExceptionContaining("testFilesetAndSignedJar",
15
        expectBuildExceptionContaining("testBadName",
11
                "incompatible attributes",
16
                "compiler not known",
12
                SignJar.ERROR_SIGNEDJAR_AND_PATHS);
17
                
13
    }
14
    public void testPath()
18
RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
19
    }
20
    /**
21
     * load an adapter by name
22
     */
15
 {
23
    public void testExplicitClass() throws Exception {
16
        executeTarget("testPath");
24
        executeTarget("testExplicitClass");
17
    
25
    
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