void testBoth() throws Exception {
expectBuildExceptionContaining("testBoth",
"error on two targets",
IsReachable.ERROR_BOTH_TARGETS);
}
public 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);
void testBothSrc() throws Exception {
expectBuildExceptionContaining("testBothSrc",
"expected failure",
WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);
}
/**
* A unit test for JUnit
*/
public void testSrcIsDir() throws Exception {
expectBuildExceptionContaining("testSrcIsDir",
"expected failure",
WsdlToDotnet.Schema.ERROR_FILE_IS_DIR);
}
/**
* A unit test for JUnit
*/
public void testSrcIsMissing() throws Exception {
expectBuildExceptionContaining("testSrcIsMissing",
"expected failure",
WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND);
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/optional/WsdlToDotnetTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testBoth() throws Exception {↵ | | 1 | void testBothSrc() throws Exception {↵
|
2 | expectBuildExceptionContaining("testBoth",↵ | | 2 | expectBuildExceptionContaining("testBothSrc",↵
|
3 | "error on two targets",↵ | | 3 | "e↵
|
4 | IsReachable↵ | | 4 | xpected failure",↵
|
5 | .ERROR_BOTH_TARGETS);↵ | | 5 | WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);↵
|
6 | }↵ | | 6 | }↵
|
| | | 7 | /**↵
|
| | | 8 | * A unit test for JUnit↵
|
| | | 9 | */↵
|
7 | public void testNoTargets() throws Exception {↵ | | 10 | public void testSrcIsDir() throws Exception {↵
|
8 | expectBuildExceptionContaining("testNoTargets",↵ | | 11 | expectBuildExceptionContaining("testSrcIsDir",↵
|
9 | "no params",↵ | | 12 | "expected failure",↵
|
10 | IsReachable.ERROR_NO_HOSTNAME);↵ | | 13 | ↵
|
11 | }↵ | | |
|
| | | 14 | WsdlToDotnet.Schema.ERROR_FILE_IS_DIR);↵
|
| | | 15 | }↵
|
|
| | | 16 | /**↵
|
| | | 17 | * A unit test for JUnit↵
|
| | | 18 | */↵
|
12 | public void testBadTimeout() throws Exception {↵ | | 19 | public void testSrcIsMissing() throws Exception {↵
|
13 | expectBuildExceptionContaining("testBadTimeout",↵ | | 20 | expectBuildExceptionContaining("testSrcIsMissing",↵
|
14 | "error on -ve timeout",↵ | | 21 | "e↵
|
15 | IsReachable.ERROR_BAD_TIMEOUT↵ | | 22 | xpected failure",↵
|
16 | );↵ | | 23 | WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND);↵
|
17 | | | 24 |
|
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 |