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 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/SchemaValidateTest.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 testNoEmptySchemaNamespace() throws Exception {
2
        expectBuildExceptionContaining("testNoEmptySchemaNamespace",
3
                "empty namespace URI",SchemaValidate.SchemaLocation.ERROR_NO_URI);
4
    }
1
void testNoEmptySchemaLocation() throws Exception {
5
    public void testNoEmptySchemaLocation() throws Exception {
2
        expectBuildExceptionContaining("testNoEmptySchemaLocation",
6
        expectBuildExceptionContaining("testNoEmptySchemaLocation",
3
                "empty schema location",
7
                "empty schema location",
4
                SchemaValidate.SchemaLocation.ERROR_NO_LOCATION);
8
                SchemaValidate.SchemaLocation.ERROR_NO_LOCATION);
5
    }
9
    }
6
    public void testNoFile() throws Exception {
10
    public void testNoFile() throws Exception {
7
        expectBuildExceptionContaining("testNoFile",
11
        expectBuildExceptionContaining("testNoFile",
8
                "no file at file attribute",
12
                "no file at file attribute",
9
                SchemaValidate.SchemaLocation.ERROR_NO_FILE);
13
                SchemaValidate.SchemaLocation.ERROR_NO_FILE);
10
    }
14
    
11
    public void testNoDoubleSchemaLocation() throws Exception {
12
        expectBuildExceptionContaining("testNoDoubleSchemaLocation",
13
                "two locations for schemas",
14
                SchemaValidate.SchemaLocation.ERROR_TWO_LOCATIONS);
15
    
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