void testInvalidExtraOpsVB() throws Exception { expectBuildExceptionContaining("testInvalidExtraOpsVB", "expected failure", WSDL_FAILED); } /** * as if parseable errors were not ignored, mono and WSE1.0 would * crash and burn. So here we verify the property exists, * and that it is not passed to the app when false */ public void testParseableErrorsIgnoredWhenFalse() throws Exception { executeTarget("testLocalWsdl"); } /** * A unit test for JUnit */ public void testSchemaFileMustExist() throws Exception { expectBuildExceptionContaining("testSchemaFileMustExist", "expected failure", WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND); }
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/optional/WsdlToDotnetTest.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 testInvalidExtraOpsVB() throws Exception {
1
void testMagicPropertyOverridesEmptyString() throws Exception {
2
        expectBuildExceptionContaining("testInvalidExtraOpsVB",
2
        expectBuildExceptionContaining("test
3
                "expected failure",
4
                WSDL_FAILED);
5
    }
6
    /**
7
     * as if parseable errors were not ignored, mono and WSE1.0 would
8
     * crash and burn. So here we verify the property exists,
9
     * and that it is not passed to the app when false
10
     */
11
    public void testParseableErrorsIgnoredWhenFalse() throws Exception {
12
        executeTarget("testLocalWsdl");
13
    }
14
    /**
15
     * A unit test for JUnit
16
     */
3
MagicPropertyOverridesEmptyString",
4
                "magic property not working",
5
                RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
6
    }
7
    /**
8
     *
9
     */
10
    public void testMagicPropertyIsEmptyString() throws Exception {
11
        executeTarget("testMagicPropertyIsEmptyString");
12
    }
17
    public void testSchemaFileMustExist() throws Exception {
13
    public void NotestFailingAdapter() throws Exception {
18
        expectBuildExceptionContaining("testSchemaFileMustExist",
14
        expectBuildExceptionContaining("testFailingAdapter",
19
                "expected failure",
15
                "expected failures to propagate",
20
                WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND);
16
                Rmic.ERROR_RMIC_FAILED);
21
    }
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