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