void testDestDirAndSignedJar() { expectBuildExceptionContaining("testFilesetAndSignedJar", "incompatible attributes", SignJar.ERROR_SIGNEDJAR_AND_PATHS); } public void testDestDirAndSignedJar2() { expectBuildExceptionContaining("testPathAndSignedJar", "incompatible attributes", SignJar.ERROR_SIGNEDJAR_AND_PATHS); } public void testDestDirFileset() { executeTarget("testDestDirFileset"); }
void testMagicProperty() throws Exception { expectBuildExceptionContaining("testMagicProperty", "magic property not working", RmicAdapterFactory.ERROR_UNKNOWN_COMPILER); } /** * A unit test for JUnit */ public void testMagicPropertyOverridesEmptyString() throws Exception { expectBuildExceptionContaining("testMagicPropertyOverridesEmptyString", "magic property not working", RmicAdapterFactory.ERROR_UNKNOWN_COMPILER); } /** * */ public void testMagicPropertyIsEmptyString() throws Exception { executeTarget("testMagicPropertyIsEmptyString"); }
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 testDestDirAndSignedJar() {
1
void testMagicProperty() throws Exception {
2
        expectBuildExceptionContaining("testFilesetAndSignedJar",
2
        expectBuildExceptionContaining("testMagicProperty",
3
                "incompatible attributes",
3
                "magic property not working",
4
                SignJar.ERROR_SIGNEDJAR_AND_PATHS);
4
                
5
    }
6
    public void testDestDirAndSignedJar2()
5
RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
6
    }
7
    /**
8
     * A unit test for JUnit
9
     */
7
 {
10
    public void testMagicPropertyOverridesEmptyString() throws Exception {
8
        expectBuildExceptionContaining("testPathAndSignedJar",
11
        expectBuildExceptionContaining("test
9
                "incompatible attributes
12
MagicPropertyOverridesEmptyString",
10
",
13
                "magic property not working",
11
                SignJar.ERROR_SIGNEDJAR_AND_PATHS);
14
                
12
    }
13
    public void testDestDirFileset()
15
RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
16
    }
17
    /**
18
     *
19
     */
14
 {
20
    public void testMagicPropertyIsEmptyString() throws Exception {
15
        executeTarget("testDestDirFileset");
21
        executeTarget("testMagicPropertyIsEmptyString");
16
    }
22
    }
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