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 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 testBadName() throws Exception {
1
void testInvalidExtraOpsVB() throws Exception {
2
        expectBuildExceptionContaining("testBadName",
2
        expectBuildExceptionContaining("testInvalidExtraOpsVB",
3
                "compiler not known",
3
                "expected failure",
4
                RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
4
                WSDL_FAILED);
5
    }
5
    }
6
    /**
6
    /**
7
     * load an adapter by name
7
     * 
8
     */
9
    public void testExplicitClass
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
     */
10
() throws Exception {
12
    public void testParseableErrorsIgnoredWhenFalse() throws Exception {
11
        executeTarget("testExplicitClass");
13
        executeTarget("testLocalWsdl");
12
    }
14
    }
13
    /**
15
    /**
14
     * A unit test for JUnit
16
     * A unit test for JUnit
15
     */
17
     */
16
    public void testWrongClass() throws Exception {
18
    public void testSchemaFileMustExist() throws Exception {
17
        expectBuildExceptionContaining("testWrongClass",
19
        expectBuildExceptionContaining("testSchemaFileMustExist",
18
                "class not an RMIC adapter",
20
                "
19
                RmicAdapterFactory.ERROR_NOT_RMIC_ADAPTER
21
expected failure",
20
);
22
                WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND);
21
    
23
    
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