void testLocalWsdl() throws Exception { executeTarget("testLocalWsdl"); } /** * A unit test for JUnit */ public void testLocalWsdlServer() throws Exception { executeTarget("testLocalWsdlServer"); } /** * A unit test for JUnit */ public void testInvalidExtraOps() throws Exception { expectBuildExceptionContaining("testInvalidExtraOps", "expected failure", WSDL_FAILED); } /** * A unit test for JUnit */ public void testLocalWsdlVB() throws Exception { executeTarget("testLocalWsdlVB");
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");
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 testLocalWsdl() throws Exception {
1
void testForkingAntClasspath() throws Exception {
2
        executeTarget("testLocalWsdl");
2
        executeTarget("testForkingAntClasspath");
3
    }
3
    }
4
    /**
4
    /**
5
     * A unit test for JUnit
5
     * test the forking compiler
6
     */
6
     */
7
    public void testLocalWsdlServer() throws Exception {
7
    public void testAntClasspath() throws Exception {
8
        executeTarget("testLocalWsdlServer");
8
        executeTarget("testAntClasspath");
9
    }
9
    }
10
 
11
    /**
10
    /**
12
     * A unit test for JUnit
11
     * A unit test for JUnit
13
     */
12
     */
14
    public void testInvalidExtraOps() throws Exception {
13
    public void testBadName() throws Exception {
15
        expectBuildExceptionContaining("testInvalidExtraOps",
14
        expectBuildExceptionContaining("testBadName",
16
                "expected failure",
15
                "compiler not known",
17
                WSDL_FAILED);
16
                RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
18
    }
17
    }
19
    /**
18
    /**
20
     * A unit test for JUnit
19
     * load an adapter by name
21
     */
20
     */
22
    public void testLocalWsdlVB() throws Exception {
21
    public void testExplicitClass() throws Exception {
23
        executeTarget("testLocalWsdlVB");
22
        executeTarget("testExplicitClass");
24
    
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