void testSchemaFileMustExist() throws Exception {
expectBuildExceptionContaining("testSchemaFileMustExist",
"expected failure",
WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND);
}
/**
* A unit test for JUnit
*/
public void testSchemaFileMustHaveOneOptionOnly() throws Exception {
expectBuildExceptionContaining("testSchemaFileMustHaveOneOptionOnly",
"expected failure",
WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);
}
/**
* A unit test for JUnit
*/
public void testSchemaMustBeSet() throws Exception {
expectBuildExceptionContaining("testSchemaMustBeSet",
"expected failure",
WsdlToDotnet.Schema.ERROR_NONE_DECLARED);
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/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 testSchemaFileMustExist() throws Exception {↵ | | 1 | void testNoTargets() throws Exception {↵
|
2 | expectBuildExceptionContaining("testSchemaFileMustExist",↵ | | 2 | expectBuildExceptionContaining("testNoTargets",↵
|
3 | "expected failure",↵ | | 3 | "no params",↵
|
4 | WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND);↵ | | 4 | IsReachable.ERROR_↵
|
5 | }↵ | | |
|
|
6 | /**↵ | | |
|
7 | * A unit test for JUnit↵ | | |
|
8 | */↵ | | |
|
9 | public void testSchemaFileMustHaveOneOptionOnly↵ | | 5 | NO_HOSTNAME);↵
|
| | | 6 | }↵
|
|
10 | () throws Exception {↵ | | 7 | public void testBadTimeout() throws Exception {↵
|
11 | expectBuildExceptionContaining("testSchemaFileMustHaveOneOptionOnly",↵ | | 8 | expectBuildExceptionContaining("testBadTimeout",↵
|
12 | "expected failure",↵ | | 9 | "e↵
|
13 | WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);↵ | | |
|
14 | }↵ | | |
|
|
15 | /**↵ | | |
|
16 | * A unit test for JUnit↵ | | |
|
17 | */↵ | | 10 | rror on -ve timeout",↵
|
| | | 11 | IsReachable.ERROR_BAD_TIMEOUT);↵
|
| | | 12 | }↵
|
|
18 | public void testSchemaMustBeSet() throws Exception {↵ | | 13 | public void NotestFile() throws Exception {↵
|
19 | expectBuildExceptionContaining("testSchemaMustBeSet",↵ | | 14 | expectBuildExceptionContaining("testFile",↵
|
20 | "expected failure",↵ | | 15 | "error on file URL",↵
|
21 | WsdlToDotnet.Schema.ERROR_NONE_DECLARED);↵ | | 16 | IsReachable.ERROR_NO_HOST_IN_URL);↵
|
22 | | | 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 |