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