void testForkingAntClasspath() throws Exception { executeTarget("testForkingAntClasspath"); } /** * test the forking compiler */ public void testAntClasspath() throws Exception { executeTarget("testAntClasspath"); } /** * A unit test for JUnit */ public 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"); }
void testLocalWsdlVB() throws Exception { executeTarget("testLocalWsdlVB"); } /** * A unit test for JUnit */ public void testLocalWsdlServerVB() throws Exception { executeTarget("testLocalWsdlServerVB"); } /** * A unit test for JUnit */ public 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"); }
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 testForkingAntClasspath() throws Exception {
1
void testLocalWsdlVB() throws Exception {
2
        executeTarget("testForkingAntClasspath");
2
        executeTarget("testLocalWsdlVB");
3
    }
3
    }
4
    /**
4
    /**
5
     * test the forking compiler
5
     * A unit test for JUnit
6
     */
6
     */
7
    public void testAntClasspath() throws Exception {
7
    public void testLocalWsdlServerVB() throws Exception {
8
        executeTarget("testAntClasspath");
8
        executeTarget("testLocalWsdlServerVB");
9
    }
9
    }
10
    /**
10
     /**
11
     * A unit test for JUnit
11
     * A unit test for JUnit
12
     */
12
     */
13
    public void testBadName() throws Exception {
13
    public void testInvalidExtraOpsVB() throws Exception {
14
        expectBuildExceptionContaining("testBadName",
14
        expectBuildExceptionContaining("testInvalidExtraOpsVB",
15
                "compiler not known",
15
                "expected failure",
16
                RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
16
                WSDL_FAILED);
17
    }
17
    }
18
    /**
18
    /**
19
     * load an adapter by name
19
     * 
20
     */
21
    public void testExplicitClass
20
as if parseable errors were not ignored, mono and WSE1.0 would
21
     * crash and burn. So here we verify the property exists,
22
     * and that it is not passed to the app when false
23
     */
22
() throws Exception {
24
    public void testParseableErrorsIgnoredWhenFalse() throws Exception {
23
        executeTarget("testExplicitClass");
25
        executeTarget("testLocalWsdl");
24
    }
26
    }
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