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 testFileset() { executeTarget("testFileset"); } public void testFilesetAndJar() { executeTarget("testFilesetAndJar"); } public void testFilesetAndSignedJar() { expectBuildExceptionContaining("testFilesetAndSignedJar", "incompatible attributes", SignJar.ERROR_SIGNEDJAR_AND_PATHS); } public void testPath() { executeTarget("testPath");
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 testFileset() {
2
        executeTarget("testLocalWsdl");
2
        executeTarget("testFileset");
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 testFilesetAndJar() {
5
        executeTarget("testFilesetAndJar");
6
    }
14
 {
7
    public void testFilesetAndSignedJar() {
15
        expectBuildExceptionContaining("testInvalidExtraOps",
8
        expectBuildExceptionContaining("testFilesetAndSignedJar",
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 testPath() {
24
        executeTarget("testLocalWsdlVB");
14
        executeTarget("testPath");
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