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 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);
}
public void testNoDuplicateSchema() throws Exception {
expectBuildExceptionContaining("testNoDuplicateSchema",
"duplicate schemas with different values",
SchemaValidate.ERROR_DUPLICATE_SCHEMA);
}
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 testNoFile() throws Exception {↵
|
2 | expectBuildExceptionContaining("testNoAlias",↵ | | 2 | expectBuildExceptionContaining("testNoFile",↵
|
3 | "no alias",↵ | | 3 | "no ↵
|
4 | SignJar↵ | | 4 | file at file attribute",↵
|
5 | .ERROR_NO_ALIAS);↵ | | 5 | SchemaValidate.SchemaLocation.ERROR_NO_FILE);↵
|
6 | }↵ | | 6 | }↵
|
|
7 | public void testNoFiles() {↵ | | 7 | public void testNoDoubleSchemaLocation() throws Exception {↵
|
8 | expectBuildExceptionContaining("testNoFiles",↵ | | 8 | expectBuildExceptionContaining("testNo↵
|
9 | "no files",↵ | | |
|
10 | SignJar↵ | | 9 | DoubleSchemaLocation",↵
|
| | | 10 | "two locations for schemas",↵
|
11 | .ERROR_NO_SOURCE);↵ | | 11 | SchemaValidate.SchemaLocation.ERROR_TWO_LOCATIONS);↵
|
12 | }↵ | | 12 | }↵
|
|
13 | public void testNoStorePass() {↵ | | 13 | public void testNoDuplicateSchema() throws Exception {↵
|
14 | expectBuildExceptionContaining("testNoStorePass",↵ | | 14 | expectBuildExceptionContaining("testNoDuplicateSchema",↵
|
15 | "no password",↵ | | 15 | "↵
|
16 | SignJar.ERROR_NO_STOREPASS↵ | | 16 | duplicate schemas with different values",↵
|
17 | );↵ | | 17 | SchemaValidate.ERROR_DUPLICATE_SCHEMA);↵
|
18 | } | | 18 | }
|
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 |