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