void testBadName() throws Exception { expectBuildExceptionContaining("testBadName", "compiler not known", RmicAdapterFactory.ERROR_UNKNOWN_COMPILER); } /** * load an adapter by name */ public void testExplicitClass() throws Exception { executeTarget("testExplicitClass"); } /** * A unit test for JUnit */ public void testWrongClass() throws Exception { expectBuildExceptionContaining("testWrongClass", "class not an RMIC adapter", RmicAdapterFactory.ERROR_NOT_RMIC_ADAPTER);
void testMagicPropertyOverridesEmptyString() throws Exception { expectBuildExceptionContaining("testMagicPropertyOverridesEmptyString", "magic property not working", RmicAdapterFactory.ERROR_UNKNOWN_COMPILER); } /** * */ public void testMagicPropertyIsEmptyString() throws Exception { executeTarget("testMagicPropertyIsEmptyString"); } public void NotestFailingAdapter() throws Exception { expectBuildExceptionContaining("testFailingAdapter", "expected failures to propagate", Rmic.ERROR_RMIC_FAILED);
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/RmicAdvancedTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testBadName() throws Exception {
1
void testMagicPropertyOverridesEmptyString() throws Exception {
2
        expectBuildExceptionContaining("testBadName",
2
        expectBuildExceptionContaining("testMagicPropertyOverridesEmptyString",
3
                "compiler not known",
3
                "magic property not working",
4
                RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
4
                RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
5
    }
5
    }
6
    /**
6
    /**
7
     * load an adapter by name
7
     *
8
     */
8
     */
9
    public void testExplicitClass() throws Exception {
9
    public void testMagicPropertyIsEmptyString() throws Exception {
10
        executeTarget("testExplicitClass");
10
        executeTarget("test
11
    }
12
    /**
13
     * A unit test for JUnit
14
     */
11
MagicPropertyIsEmptyString");
12
    }
15
    public void testWrongClass() throws Exception {
13
    public void NotestFailingAdapter() throws Exception {
16
        expectBuildExceptionContaining("testWrongClass",
14
        expectBuildExceptionContaining("testFailingAdapter",
17
                "class not an RMIC adapter",
15
                "expected failures to propagate",
18
                RmicAdapterFactory.ERROR_NOT_RMIC_ADAPTER);
16
                Rmic.ERROR_RMIC_FAILED);
19
    
17
    
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