void testMapperPath() {
executeTarget("testMapperPath");
}
public void testMapperNoDest() {
expectBuildExceptionContaining("testMapperNoDest",
"two mappers",
SignJar.ERROR_MAPPER_WITHOUT_DEST);
}
public void testTwoMappers() {
expectBuildExceptionContaining("testTwoMappers",
"two mappers",
SignJar.ERROR_TOO_MANY_MAPPERS);
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/SignJarTest.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 testMapperPath() {↵ | | 1 | void testVerifyJar() {↵
|
2 | executeTarget("testMapperPath");↵ | | 2 | executeTarget("testVerifyJar");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | public void testMapperNoDest() {↵ | | 4 | public void testVerifyNoArgs() {↵
|
5 | expectBuildExceptionContaining("testMapperNoDest",↵ | | 5 | expectBuildExceptionContaining("testVerifyNoArgs",↵
|
6 | "two mappers",↵ | | 6 | "no args",↵
|
7 | SignJar.ERROR_MAPPER_WITHOUT_DEST);↵ | | 7 | AbstractJarSignerTask.ERROR_NO_SOURCE);↵
|
8 | }↵ | | 8 | }↵
|
|
9 | public void testTwoMappers() {↵ | | 9 | public void testVerifyJarUnsigned() {↵
|
10 | expectBuildExceptionContaining("testTwoMappers",↵ | | 10 | expectBuildExceptionContaining("testVerifyJarUnsigned",↵
|
11 | "two mappers",↵ | | 11 | "unsigned JAR file",↵
|
12 | SignJar.ERROR_TOO_MANY_MAPPERS);↵ | | 12 | VerifyJar.ERROR_NO_VERIFY);↵
|
13 | | | 13 |
|
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 |