void testDestDirAndSignedJar2() { expectBuildExceptionContaining("testPathAndSignedJar", "incompatible attributes", SignJar.ERROR_SIGNEDJAR_AND_PATHS); } public void testDestDirFileset() { executeTarget("testDestDirFileset"); } public void testMapperFileset() { executeTarget("testMapperFileset"); } public void testDestDirPath() { executeTarget("testDestDirPath"); } public void testMapperPath() { executeTarget("testMapperPath");
void NotestFailingAdapter() throws Exception { expectBuildExceptionContaining("testFailingAdapter", "expected failures to propagate", Rmic.ERROR_RMIC_FAILED); } /** * test that version 1.1 stubs are good * @throws Exception */ public void testVersion11() throws Exception { executeTarget("testVersion11"); } /** * test that version 1.2 stubs are good * * @throws Exception */ public void testVersion12() throws Exception { executeTarget("testVersion12"); } /** * test that version compat stubs are good * * @throws Exception */ public void testVersionCompat() throws Exception { executeTarget("testVersionCompat"); } /** * test that passes -Xnew to sun's rmic. * * @throws Exception */ public void testXnew() throws Exception { executeTarget("testXnew");
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 testDestDirAndSignedJar2() {
1
void NotestFailingAdapter() throws Exception {
2
        expectBuildExceptionContaining("testPathAndSignedJar",
2
        expectBuildExceptionContaining("testFailingAdapter",
3
                "incompatible attributes",
3
                "expected failures to propagate",
4
                SignJar.ERROR_SIGNEDJAR_AND_PATHS);
4
                
5
    }
6
    public void testDestDirFileset() {
7
        executeTarget("testDestDirFileset");
5
Rmic.ERROR_RMIC_FAILED);
6
    }
7
    /**
8
     * test that version 1.1 stubs are good
9
     * @throws Exception
10
     */
11
    public void testVersion11() throws Exception {
12
        executeTarget("testVersion11");
13
    }
14
    /**
15
     * test that version 1.2 stubs are good
16
     *
17
     * @throws Exception
8
    }
18
    
19
 */
9
    public void testMapperFileset() {
20
    public void testVersion12() throws Exception {
10
        executeTarget("testMapperFileset");
21
        executeTarget("testVersion12");
22
    }
23
    /**
24
     * test that version compat stubs are good
25
     *
26
     * @throws Exception
11
    }
27
    
28
 */
12
    public void testDestDirPath() {
29
    public void testVersionCompat() throws Exception {
13
        executeTarget("testDestDirPath");
30
        executeTarget("testVersionCompat");
14
    }
31
    }
15
    public void testMapperPath()
32
    /**
33
     * test that passes -Xnew to sun's rmic.
34
     *
35
     * @throws Exception
36
     */
16
 {
37
    public void testXnew() throws Exception {
17
        executeTarget("testMapperPath");
38
        executeTarget("testXnew");
18
    
39
    
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