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); } /** * load an adapter by name */ public void testExplicitClass() throws Exception { executeTarget("testExplicitClass");
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); } public void testPath() { executeTarget("testPath");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/RmicAdvancedTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/SignJarTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void NotestForking() throws Exception {
1
void test
2
        executeTarget("testForking");
3
    }
4
    /**
5
     * test the forking compiler
2
PreserveLastModified() {
3
        executeTarget("preserveLastModified");
6
     */
4
    }
7
    public void testForkingAntClasspath() throws Exception {
5
    public void testF
8
        executeTarget("testForkingAntClasspath");
9
    }
10
    /**
11
     * test the forking compiler
12
     */
13
    public void testAntClasspath() throws Exception
6
ileset() {
7
        executeTarget("testFileset");
8
    }
14
 {
9
    public void testFilesetAndJar() {
15
        executeTarget("testAntClasspath");
10
        executeTarget("testFilesetAndJar");
16
    }
11
    }
17
    /**
12
    
18
     * A unit test for JUnit
19
     */
20
    public void testBadName() throws Exception {
13
public void testFilesetAndSignedJar() {
21
        expectBuildExceptionContaining("testBadName",
14
        expectBuildExceptionContaining("testFilesetAndSignedJar",
22
                "compiler not known",
15
                "incompatible attributes",
23
                RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
16
                
24
    }
25
    /**
26
     * load an adapter by name
27
     */
28
    public void testExplicitClass() throws Exception
17
SignJar.ERROR_SIGNEDJAR_AND_PATHS);
18
    }
29
 {
19
    public void testPath() {
30
        executeTarget("testExplicitClass");
20
        executeTarget("testPath");
31
    
21
    
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