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 testPath() { executeTarget("testPath"); } public void testPathAndJar() { executeTarget("testPathAndJar"); } public void testPathAndSignedJar() { expectBuildExceptionContaining("testPathAndSignedJar", "incompatible attributes", SignJar.ERROR_SIGNEDJAR_AND_PATHS); } public void testSignedJar() { executeTarget("testSignedJar");
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/SignJarTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testLocalWsdl() throws Exception {
1
void testPath() {
2
        executeTarget("testLocalWsdl");
2
        executeTarget("testPath");
3
    }
3
    }
4
    /**
5
     * A unit test for JUnit
6
     */
7
    public void testLocalWsdlServer() throws Exception {
8
        executeTarget("testLocalWsdlServer");
9
    }
10
     /**
11
     * A unit test for JUnit
12
     */
13
    public void testInvalidExtraOps() throws Exception
4
    public void testPathAndJar() {
5
        executeTarget("testPathAndJar");
6
    }
14
 {
7
    public void testPathAndSignedJar() {
15
        expectBuildExceptionContaining("testInvalidExtraOps",
8
        expectBuildExceptionContaining("testPathAndSignedJar",
16
                "expected failure",
9
                "
17
                WSDL_FAILED);
18
    }
19
    /**
20
     * A unit test for JUnit
21
     */
22
    public void testLocalWsdlVB() throws Exception
10
incompatible attributes",
11
                SignJar.ERROR_SIGNEDJAR_AND_PATHS);
12
    }
23
 {
13
    public void testSignedJar() {
24
        executeTarget("testLocalWsdlVB");
14
        executeTarget("testSignedJar");
25
    
15
    
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