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");
void testVerifyJarUnsigned() { expectBuildExceptionContaining("testVerifyJarUnsigned", "unsigned JAR file", VerifyJar.ERROR_NO_VERIFY); } public void NotestVerifyJarNotInKeystore() { expectBuildExceptionContaining("testVerifyJarNotInKeystore", "signature not in keystore", VerifyJar.ERROR_NO_VERIFY); } public void testVerifyFileset() { executeTarget("testVerifyFileset");
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 testMagicProperty() throws Exception {
1
void testVerifyJarUnsigned() {
2
        expectBuildExceptionContaining("testMagicProperty",
2
        expectBuildExceptionContaining("testVerifyJarUnsigned",
3
                "magic property not working",
3
                "unsigned JAR file",
4
                RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
4
                
5
    }
6
    /**
7
     * A unit test for JUnit
8
     */
5
VerifyJar.ERROR_NO_VERIFY);
6
    }
9
    public void testMagicPropertyOverridesEmptyString() throws Exception {
7
    public void NotestVerifyJarNotInKeystore() {
10
        expectBuildExceptionContaining("testMagicPropertyOverridesEmptyString",
8
        expectBuildExceptionContaining("testVerifyJarNotInKeystore",
11
                "magic property not working",
9
                "signature not in keystore",
12
                RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
10
                
13
    }
14
    /**
15
     *
16
     */
17
    public void testMagicPropertyIsEmptyString() throws Exception
11
VerifyJar.ERROR_NO_VERIFY);
12
    }
18
 {
13
    public void testVerifyFileset() {
19
        executeTarget("testMagicPropertyIsEmptyString");
14
        executeTarget("testVerifyFileset");
20
    
15
    
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