void testNoAlias() {
expectBuildExceptionContaining("testNoAlias",
"no alias",
SignJar.ERROR_NO_ALIAS);
}
public void testNoFiles() {
expectBuildExceptionContaining("testNoFiles",
"no files",
SignJar.ERROR_NO_SOURCE);
}
public void testNoStorePass() {
expectBuildExceptionContaining("testNoStorePass",
"no password",
SignJar.ERROR_NO_STOREPASS);
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/SignJarTest.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 testNoAlias() {↵ | | 1 | void testNoEmptySchemaNamespace() throws Exception {↵
|
2 | expectBuildExceptionContaining("testNoAlias",↵ | | 2 | expectBuildExceptionContaining("testNo↵
|
3 | "no alias",↵ | | |
|
4 | SignJar↵ | | 3 | EmptySchemaNamespace",↵
|
5 | .ERROR_NO_ALIAS);↵ | | 4 | "empty namespace URI",SchemaValidate.SchemaLocation.ERROR_NO_URI);↵
|
6 | }↵ | | 5 | }↵
|
|
7 | public void testNoFiles() {↵ | | 6 | public void testNoEmptySchemaLocation() throws Exception {↵
|
8 | expectBuildExceptionContaining("testNoFiles",↵ | | 7 | expectBuildExceptionContaining("testNoEmptySchemaLocation",↵
|
9 | "no files",↵ | | 8 | "↵
|
10 | SignJar↵ | | 9 | empty schema location",↵
|
11 | .ERROR_NO_SOURCE);↵ | | 10 | SchemaValidate.SchemaLocation.ERROR_NO_LOCATION);↵
|
12 | }↵ | | 11 | }↵
|
|
13 | public void testNoStorePass() {↵ | | 12 | public void testNoFile() throws Exception {↵
|
14 | expectBuildExceptionContaining("testNoStorePass",↵ | | 13 | expectBuildExceptionContaining("testNoFile",↵
|
15 | "no password",↵ | | 14 | "no ↵
|
16 | SignJar↵ | | 15 | file at file attribute",↵
|
17 | .ERROR_NO_STOREPASS);↵ | | 16 | SchemaValidate.SchemaLocation.ERROR_NO_FILE);↵
|
18 | | | 17 |
|
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 |