void testMapperNoDest() {
expectBuildExceptionContaining("testMapperNoDest",
"two mappers",
SignJar.ERROR_MAPPER_WITHOUT_DEST);
}
public void testTwoMappers() {
expectBuildExceptionContaining("testTwoMappers",
"two mappers",
SignJar.ERROR_TOO_MANY_MAPPERS);
}
public void testNoAlias() {
expectBuildExceptionContaining("testNoAlias",
"no alias",
SignJar.ERROR_NO_ALIAS);
void testNoTargets() throws Exception {
expectBuildExceptionContaining("testNoTargets",
"no params",
IsReachable.ERROR_NO_HOSTNAME);
}
public void testBadTimeout() throws Exception {
expectBuildExceptionContaining("testBadTimeout",
"error on -ve timeout",
IsReachable.ERROR_BAD_TIMEOUT);
}
public void NotestFile() throws Exception {
expectBuildExceptionContaining("testFile",
"error on file URL",
IsReachable.ERROR_NO_HOST_IN_URL);
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/condition/IsReachableTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testMapperNoDest() {↵ | | 1 | void testNoTargets() throws Exception {↵
|
2 | expectBuildExceptionContaining("testMapperNoDest",↵ | | 2 | expectBuildExceptionContaining("testNoTargets",↵
|
3 | "two mappers",↵ | | 3 | "no params",↵
|
4 | SignJar.ERROR_MAPPER_WITHOUT_DEST);↵ | | 4 | ↵
|
5 | }↵ | | |
|
|
6 | public void testTwoMappers()↵ | | 5 | IsReachable.ERROR_NO_HOSTNAME);↵
|
| | | 6 | }↵
|
|
7 | {↵ | | 7 | public void testBadTimeout() throws Exception {↵
|
8 | expectBuildExceptionContaining("testTwoMappers",↵ | | 8 | expectBuildExceptionContaining("testBadTimeout",↵
|
9 | "two mappers",↵ | | 9 | "error on -ve timeout",↵
|
10 | SignJar.ERROR_TOO_MANY_MAPPERS);↵ | | 10 | IsReachable.ERROR_BAD_TIMEOUT);↵
|
11 | }↵ | | 11 | }↵
|
|
12 | public void testNoAlias() {↵ | | 12 | public void NotestFile() throws Exception {↵
|
13 | expectBuildExceptionContaining("testNoAlias",↵ | | 13 | expectBuildExceptionContaining("testFile",↵
|
14 | "no alias",↵ | | 14 | "error on file URL",↵
|
15 | SignJar.ERROR_NO_ALIAS);↵ | | 15 | IsReachable.ERROR_NO_HOST_IN_URL);↵
|
16 | | | 16 |
|
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 |