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);
}
public void testBadURL() throws Exception {
expectBuildExceptionContaining("testBadURL",
"error in URL",
IsReachable.ERROR_BAD_URL);
void testTwoMappers() {
expectBuildExceptionContaining("testTwoMappers",
"two mappers",
SignJar.ERROR_TOO_MANY_MAPPERS);
}
public void testNoAlias() {
expectBuildExceptionContaining("testNoAlias",
"no alias",
SignJar.ERROR_NO_ALIAS);
}
public void testNoFiles() {
expectBuildExceptionContaining("testNoFiles",
"no files",
SignJar.ERROR_NO_SOURCE);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/condition/IsReachableTest.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 testBadTimeout() throws Exception {↵ | | 1 | void testTwoMappers() {↵
|
2 | expectBuildExceptionContaining("testBadTimeout",↵ | | 2 | expectBuildExceptionContaining("testTwoMappers",↵
|
3 | "error on -ve timeout",↵ | | 3 | "two mappers",↵
|
4 | IsReachable.ERROR_BAD_TIMEOUT);↵ | | 4 | SignJar.ERROR_TOO_MANY_MAPPERS);↵
|
5 | }↵ | | 5 | }↵
|
|
6 | public void NotestFile() throws Exception {↵ | | 6 | public void testNoAlias() {↵
|
7 | expectBuildExceptionContaining("testFile",↵ | | 7 | expectBuildExceptionContaining("testNoAlias",↵
|
8 | "error on file URL",↵ | | 8 | "no alias",↵
|
9 | IsReachable.ERROR_NO_HOST_IN_URL);↵ | | 9 | SignJar.ERROR_NO_ALIAS);↵
|
10 | }↵ | | 10 | }↵
|
|
11 | public void testBadURL() throws Exception {↵ | | 11 | public void testNoFiles() {↵
|
12 | expectBuildExceptionContaining("testBadURL",↵ | | 12 | expectBuildExceptionContaining("testNoFiles",↵
|
13 | "error in URL",↵ | | 13 | "no files",↵
|
14 | IsReachable.ERROR_BAD_URL);↵ | | 14 | SignJar.ERROR_NO_SOURCE);↵
|
15 | | | 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 |