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);
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);
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/optional/SchemaValidateTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testNoParams() throws Exception {
1
void testNoEmptySchemaNamespace() throws Exception {
2
        expectBuildExceptionContaining("testNoParams",
2
        expectBuildExceptionContaining("testNoEmptySchemaNamespace",
3
                "expected failure",
3
                "e
4
                WsdlToDotnet.ERROR_NO_DEST_FILE);
4
mpty namespace URI",SchemaValidate.SchemaLocation.ERROR_NO_URI);
5
    }
5
    }
6
    /**
6
    
7
     * A unit test for JUnit
8
     */
9
    public void testNoSrc() throws Exception {
7
public void testNoEmptySchemaLocation() throws Exception {
10
        expectBuildExceptionContaining("testNoSrc",
8
        expectBuildExceptionContaining("testNoEmptySchemaLocation",
11
                "expected failure",
9
                "e
12
                WsdlToDotnet.Schema.ERROR_NONE_DECLARED);
13
    }
14
    /**
15
     * A unit test for JUnit
16
     */
10
mpty schema location",
11
                SchemaValidate.SchemaLocation.ERROR_NO_LOCATION);
12
    }
17
    public void testDestIsDir() throws Exception {
13
    public void testNoFile() throws Exception {
18
        expectBuildExceptionContaining("testDestIsDir",
14
        expectBuildExceptionContaining("testNoFile",
19
                "expected failure",
15
                "
20
                WsdlToDotnet
16
no file at file attribute",
21
.ERROR_DEST_FILE_IS_DIR);
17
                SchemaValidate.SchemaLocation.ERROR_NO_FILE);
22
    
18
    
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