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");
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/SignJarTest.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 testPath() {
1
void test
2
        executeTarget("testPath");
3
    }
4
    public void testPathAndJar() {
5
        executeTarget("testPathAndJar");
6
    }
7
    public void testPathAndSignedJar()
2
LocalWsdlVB() throws Exception {
3
        executeTarget("testLocalWsdlVB");
4
    }
5
    /**
6
     * A unit test for JUnit
7
     */
8
    public void testLocalWsdlServerVB() throws Exception {
9
        executeTarget("testLocalWsdlServerVB");
10
    }
11
     /**
12
     * A unit test for JUnit
13
     */
8
 {
14
    public void testInvalidExtraOpsVB() throws Exception {
9
        expectBuildExceptionContaining("testPathAndSignedJar",
15
        expectBuildExceptionContaining("testInvalidExtraOpsVB",
10
                "incompatible attributes",
16
                "
11
                SignJar.ERROR_SIGNEDJAR_AND_PATHS);
12
    }
13
    public void testSignedJar()
17
expected failure",
18
                WSDL_FAILED);
19
    }
20
    /**
21
     * as if parseable errors were not ignored, mono and WSE1.0 would
22
     * crash and burn. So here we verify the property exists,
23
     * and that it is not passed to the app when false
24
     */
14
 {
25
    public void testParseableErrorsIgnoredWhenFalse() throws Exception {
15
        executeTarget("testSignedJar");
26
        executeTarget("testLocalWsdl");
16
    
27
    
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