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); } public void testNoDoubleSchemaLocation() throws Exception { expectBuildExceptionContaining("testNoDoubleSchemaLocation", "two locations for schemas", SchemaValidate.SchemaLocation.ERROR_TWO_LOCATIONS);
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 testNoEmptySchemaLocation() throws Exception {
1
void testNoParams() throws Exception {
2
        expectBuildExceptionContaining("testNoEmptySchemaLocation",
2
        expectBuildExceptionContaining("testNoParams",
3
                "empty schema location",
3
                "e
4
                SchemaValidate.SchemaLocation
4
xpected failure",
5
.ERROR_NO_LOCATION);
5
                WsdlToDotnet.ERROR_NO_DEST_FILE);
6
    }
6
    }
7
    /**
8
     * A unit test for JUnit
9
     */
7
    public void testNoFile() throws Exception {
10
    public void testNoSrc() throws Exception {
8
        expectBuildExceptionContaining("testNoFile",
11
        expectBuildExceptionContaining("testNoSrc",
9
                "no file at file attribute",
12
                "expected failure",
10
                SchemaValidate.SchemaLocation.ERROR_NO_FILE);
13
                
11
    }
12
    public void testNoDoubleSchemaLocation
14
WsdlToDotnet.Schema.ERROR_NONE_DECLARED);
15
    }
16
    /**
17
     * A unit test for JUnit
18
     */
13
() throws Exception {
19
    public void testDestIsDir() throws Exception {
14
        expectBuildExceptionContaining("testNoDoubleSchemaLocation",
20
        expectBuildExceptionContaining("test
15
                "two locations for schemas",
16
                SchemaValidate.SchemaLocation.ERROR_TWO_LOCATIONS
21
DestIsDir",
22
                "expected failure",
17
);
23
                WsdlToDotnet.ERROR_DEST_FILE_IS_DIR);
18
    
24
    
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