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); } public void testNoFile() throws Exception { expectBuildExceptionContaining("testNoFile", "no file at file attribute", SchemaValidate.SchemaLocation.ERROR_NO_FILE);
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); } /** * A unit test for JUnit */ public void testDestIsDir() throws Exception { expectBuildExceptionContaining("testDestIsDir", "expected failure", WsdlToDotnet.ERROR_DEST_FILE_IS_DIR);
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 tearDown() {
2
        executeTarget("testNSMapping");
2
        executeTarget("teardown");
3
    }
3
    }
4
    /**
5
     * A unit test for JUnit
6
     */
4
    public void testNoEmptySchemaNamespace() throws Exception {
7
    public void testNoParams() throws Exception {
5
        expectBuildExceptionContaining("testNoEmptySchemaNamespace",
8
        expectBuildExceptionContaining("testNoParams",
6
                "empty namespace URI",SchemaValidate.SchemaLocation
9
                "expected failure",
7
.ERROR_NO_URI);
10
                WsdlToDotnet.ERROR_NO_DEST_FILE);
8
    }
11
    }
9
    public void testNoEmptySchemaLocation
12
    /**
13
     * A unit test for JUnit
14
     */
10
() throws Exception {
15
    public void testNoSrc() throws Exception {
11
        expectBuildExceptionContaining("testNoEmptySchemaLocation",
16
        expectBuildExceptionContaining("testNoSrc",
12
                "empty schema location",
17
                "e
13
                SchemaValidate.SchemaLocation.ERROR_NO_LOCATION);
14
    }
18
xpected failure",
19
                WsdlToDotnet.Schema.ERROR_NONE_DECLARED);
20
    }
21
    /**
22
     * A unit test for JUnit
23
     */
15
    public void testNoFile() throws Exception {
24
    public void testDestIsDir() throws Exception {
16
        expectBuildExceptionContaining("testNoFile",
25
        expectBuildExceptionContaining("testDestIsDir",
17
                "no file at file attribute",
26
                "expected failure",
18
                SchemaValidate.SchemaLocation.ERROR_NO_FILE);
27
                WsdlToDotnet.ERROR_DEST_FILE_IS_DIR);
19
    
28
    
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