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 testParseableErrorsIgnoredWhenFalse() throws Exception { executeTarget("testLocalWsdl"); } /** * A unit test for JUnit */ public void testSchemaFileMustExist() throws Exception { expectBuildExceptionContaining("testSchemaFileMustExist", "expected failure", WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND); } /** * A unit test for JUnit */ public void testSchemaFileMustHaveOneOptionOnly() throws Exception { expectBuildExceptionContaining("testSchemaFileMustHaveOneOptionOnly", "expected failure", WsdlToDotnet.Schema.ERROR_BOTH_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 testParseableErrorsIgnoredWhenFalse() throws Exception {
2
        executeTarget("testNSMapping");
2
        executeTarget("testLocalWsdl");
3
    }
3
    }
4
    /**
5
     * A unit test for JUnit
6
     */
4
    public void testNoEmptySchemaNamespace() throws Exception {
7
    public void testSchemaFileMustExist() throws Exception {
5
        expectBuildExceptionContaining("testNoEmptySchemaNamespace",
8
        expectBuildExceptionContaining("test
6
                "empty namespace URI",SchemaValidate.SchemaLocation
9
SchemaFileMustExist",
10
                "expected failure",
7
.ERROR_NO_URI);
11
                WsdlToDotnet.Schema.ERROR_
8
    }
9
    public void testNoEmptySchemaLocation
12
FILE_NOT_FOUND);
13
    }
14
    /**
15
     * A unit test for JUnit
16
     */
10
() throws Exception {
17
    public void testSchemaFileMustHaveOneOptionOnly() throws Exception {
11
        expectBuildExceptionContaining("testNoEmptySchemaLocation",
18
        expectBuildExceptionContaining("testSchemaFileMustHaveOneOptionOnly",
12
                "empty schema location",
19
                "e
13
                SchemaValidate.SchemaLocation.ERROR_NO_LOCATION
20
xpected failure",
14
);
21
                WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);
15
    
22
    
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