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);
void testVerifyJar() {
executeTarget("testVerifyJar");
}
public void testVerifyNoArgs() {
expectBuildExceptionContaining("testVerifyNoArgs",
"no args",
AbstractJarSignerTask.ERROR_NO_SOURCE);
}
public void testVerifyJarUnsigned() {
expectBuildExceptionContaining("testVerifyJarUnsigned",
"unsigned JAR file",
VerifyJar.ERROR_NO_VERIFY);
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/SignJarTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testNSMapping() throws Exception {↵ | | 1 | void testVerifyJar() {↵
|
2 | executeTarget("testNSMapping");↵ | | 2 | executeTarget("testVerifyJar");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | public void testNoEmptySchemaNamespace() throws Exception {↵ | | 4 | public void testVerifyNoArgs() {↵
|
5 | expectBuildExceptionContaining("testNoEmptySchemaNamespace",↵ | | 5 | expectBuildExceptionContaining("test↵
|
6 | "empty namespace URI",SchemaValidate.SchemaLocation↵ | | 6 | VerifyNoArgs",↵
|
| | | 7 | "no args",↵
|
7 | .ERROR_NO_URI);↵ | | 8 | AbstractJarSignerTask.ERROR_NO_SOURCE);↵
|
8 | }↵ | | 9 | }↵
|
|
9 | public void testNoEmptySchemaLocation() throws Exception {↵ | | 10 | public void testVerifyJarUnsigned() {↵
|
10 | expectBuildExceptionContaining("testNoEmptySchemaLocation",↵ | | 11 | expectBuildExceptionContaining("test↵
|
11 | "empty schema location",↵ | | |
|
12 | SchemaValidate.SchemaLocation↵ | | 12 | VerifyJarUnsigned",↵
|
| | | 13 | "unsigned JAR file",↵
|
13 | .ERROR_NO_LOCATION);↵ | | 14 | VerifyJar.ERROR_NO_VERIFY);↵
|
14 | | | 15 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |