void testNoParams() throws Exception {
expectBuildExceptionContaining("testNoParams",
"expected failure",
WsdlToDotnet.ERROR_NO_DEST_FILE);
}
/**
* A unit test for JUnit
*/
public void testNoSrc() throws Exception {
expectBuildExceptionContaining("testNoSrc",
"expected failure",
WsdlToDotnet.Schema.ERROR_NONE_DECLARED);
}
/**
* A unit test for JUnit
*/
public void testDestIsDir() throws Exception {
expectBuildExceptionContaining("testDestIsDir",
"expected failure",
WsdlToDotnet.ERROR_DEST_FILE_IS_DIR);
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);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/WsdlToDotnetTest.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 testNoParams() throws Exception {↵ | | 1 | void testBadTimeout() throws Exception {↵
|
2 | expectBuildExceptionContaining("testNoParams",↵ | | 2 | expectBuildExceptionContaining("testBadTimeout",↵
|
3 | "expected failure",↵ | | 3 | "error on -ve timeout",↵
|
4 | WsdlToDotnet.ERROR_NO_DEST_FILE);↵ | | 4 | ↵
|
5 | }↵ | | |
|
|
6 | /**↵ | | |
|
7 | * A unit test for JUnit↵ | | |
|
8 | */↵ | | 5 | IsReachable.ERROR_BAD_TIMEOUT);↵
|
| | | 6 | }↵
|
|
9 | public void testNoSrc() throws Exception {↵ | | 7 | public void NotestFile() throws Exception {↵
|
10 | expectBuildExceptionContaining("testNoSrc",↵ | | 8 | expectBuildExceptionContaining("testFile",↵
|
11 | "expected failure",↵ | | 9 | "error on file URL",↵
|
12 | WsdlToDotnet.Schema.ERROR_NONE_DECLARED);↵ | | 10 | ↵
|
13 | }↵ | | |
|
|
14 | /**↵ | | |
|
15 | * A unit test for JUnit↵ | | |
|
16 | */↵ | | 11 | IsReachable.ERROR_NO_HOST_IN_URL);↵
|
| | | 12 | }↵
|
|
17 | public void testDestIsDir() throws Exception {↵ | | 13 | public void testBadURL() throws Exception {↵
|
18 | expectBuildExceptionContaining("testDestIsDir",↵ | | 14 | expectBuildExceptionContaining("testBadURL",↵
|
19 | "expected failure",↵ | | 15 | "error in URL",↵
|
20 | WsdlToDotnet.ERROR_DEST_FILE_IS_DIR);↵ | | 16 | IsReachable.ERROR_BAD_URL);↵
|
21 | | | 17 |
|
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 |