void testMagicPropertyIsEmptyString() throws Exception { executeTarget("testMagicPropertyIsEmptyString"); } public 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");
void testFilesetAndJar() { executeTarget("testFilesetAndJar"); } public void testFilesetAndSignedJar() { expectBuildExceptionContaining("testFilesetAndSignedJar", "incompatible attributes", SignJar.ERROR_SIGNEDJAR_AND_PATHS); } public void testPath() { executeTarget("testPath"); } public void testPathAndJar() { executeTarget("testPathAndJar");
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 testMagicPropertyIsEmptyString() throws Exception {
1
void testFilesetAndJar() {
2
        executeTarget("testMagicPropertyIsEmptyString");
2
        executeTarget("testFilesetAndJar");
3
    }
3
    }
4
    public void NotestFailingAdapter() throws Exception {
4
    public void testFilesetAndSignedJar() {
5
        expectBuildExceptionContaining("testFailingAdapter",
5
        expectBuildExceptionContaining("testFilesetAndSignedJar",
6
                "expected failures to propagate",
6
                "incompatible attributes",
7
                Rmic.ERROR_RMIC_FAILED);
7
                
8
    }
9
    /**
10
     * test that version 1.1 stubs are good
11
     * @throws Exception
12
     */
13
    public void testVersion11() throws Exception
8
SignJar.ERROR_SIGNEDJAR_AND_PATHS);
9
    }
14
 {
10
    public void testPath() {
15
        executeTarget("testVersion11");
11
        executeTarget("testPath");
16
    }
12
    }
17
    /**
13
    
18
     * test that version 1.2 stubs are good
19
     *
20
     * @throws Exception
21
     */
22
    public void testVersion12() throws Exception {
14
public void testPathAndJar() {
23
        executeTarget("testVersion12");
15
        executeTarget("testPathAndJar");
24
    
16
    
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