void testNSMapping() throws Exception { executeTarget("testNSMapping"); } public void testNoEmptySchemaNamespace() throws Exception { expectBuildExceptionContaining("testNoEmptySchemaNamespace", "empty namespace URI",SchemaValidate.SchemaLocation.ERROR_NO_URI); } public void testNoEmptySchemaLocation() throws Exception { expectBuildExceptionContaining("testNoEmptySchemaLocation", "empty schema location", SchemaValidate.SchemaLocation.ERROR_NO_LOCATION);
void tearDown() { executeTarget("teardown"); } /** * A unit test for JUnit */ public void testNoParams() throws Exception { expectBuildExceptionContaining("testNoParams", "expected failure", WsdlToDotnet.ERROR_NO_DEST_FILE); } /** * A unit test for JUnit */ public void testNoSrc() throws Exception { expectBuildExceptionContaining("testNoSrc", "expected failure", WsdlToDotnet.Schema.ERROR_NONE_DECLARED);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/SchemaValidateTest.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 testNSMapping() throws Exception {
1
void te
2
        executeTarget("testNSMapping");
3
    }
2
arDown() {
3
        executeTarget("teardown");
4
    }
5
    /**
6
     * A unit test for JUnit
7
     */
4
    public void testNoEmptySchemaNamespace() throws Exception {
8
    public void testNoParams() throws Exception {
5
        expectBuildExceptionContaining("testNoEmptySchemaNamespace",
9
        expectBuildExceptionContaining("testNoParams",
6
                "empty namespace URI",SchemaValidate.SchemaLocation
10
                "expected failure",
7
.ERROR_NO_URI);
11
                WsdlToDotnet.ERROR_NO_DEST_FILE);
8
    }
12
    }
9
    public void testNoEmptySchemaLocation
13
    /**
14
     * A unit test for JUnit
15
     */
10
() throws Exception {
16
    public void testNoSrc() throws Exception {
11
        expectBuildExceptionContaining("testNoEmptySchemaLocation",
17
        expectBuildExceptionContaining("testNoSrc",
12
                "empty schema location",
18
                "e
13
                SchemaValidate.SchemaLocation.ERROR_NO_LOCATION
19
xpected failure",
14
);
20
                WsdlToDotnet.Schema.ERROR_NONE_DECLARED);
15
    
21
    
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