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 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/optional/WsdlToDotnetTest.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 testSchemaFileMustExist() throws Exception {↵ | | 1 | void testBothSrc() throws Exception {↵
|
2 | expectBuildExceptionContaining("testSchemaFileMustExist",↵ | | 2 | expectBuildExceptionContaining("testBothSrc",↵
|
3 | "expected failure",↵ | | 3 | "expected failure",↵
|
4 | WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND);↵ | | 4 | WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);↵
|
5 | }↵ | | 5 | }↵
|
|
6 | /**↵ | | 6 | /**↵
|
7 | * A unit test for JUnit↵ | | 7 | * A unit test for JUnit↵
|
8 | */↵ | | 8 | */↵
|
9 | public void testSchemaFileMustHaveOneOptionOnly() throws Exception {↵ | | 9 | public void testSrcIsDir() throws Exception {↵
|
10 | expectBuildExceptionContaining("testSchemaFileMustHaveOneOptionOnly",↵ | | 10 | expectBuildExceptionContaining("testSrcIsDir",↵
|
11 | "expected failure",↵ | | 11 | "expected failure",↵
|
12 | WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);↵ | | 12 | WsdlToDotnet.Schema.ERROR_FILE_IS_DIR);↵
|
13 | }↵ | | 13 | }↵
|
|
14 | /**↵ | | 14 | /**↵
|
15 | * A unit test for JUnit↵ | | 15 | * A unit test for JUnit↵
|
16 | */↵ | | 16 | */↵
|
17 | public void testSchemaMustBeSet() throws Exception {↵ | | 17 | public void testSrcIsMissing() throws Exception {↵
|
18 | expectBuildExceptionContaining("testSchemaMustBeSet",↵ | | 18 | expectBuildExceptionContaining("testSrcIsMissing",↵
|
19 | "expected failure",↵ | | 19 | "expected failure",↵
|
20 | WsdlToDotnet.Schema.ERROR_NONE_DECLARED);↵ | | 20 | WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND);↵
|
21 | | | 21 |
|
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 |