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