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 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/optional/WsdlToDotnetTest.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 testNoParams() throws Exception {↵ | | 1 | void testTwoMappers() {↵
|
2 | expectBuildExceptionContaining("testNoParams",↵ | | 2 | expectBuildExceptionContaining("testTwoMappers",↵
|
3 | "expected failure",↵ | | 3 | "two mappers",↵
|
4 | WsdlToDotnet.ERROR_NO_DEST_FILE);↵ | | 4 | ↵
|
5 | }↵ | | |
|
|
6 | /**↵ | | |
|
7 | * A unit test for JUnit↵ | | |
|
8 | */↵ | | |
|
9 | public void testNoSrc() throws Exception↵ | | 5 | SignJar.ERROR_TOO_MANY_MAPPERS);↵
|
| | | 6 | }↵
|
|
10 | {↵ | | 7 | public void testNoAlias() {↵
|
11 | expectBuildExceptionContaining("testNoSrc",↵ | | 8 | expectBuildExceptionContaining("testNoAlias",↵
|
12 | "expected failure",↵ | | 9 | "no alias",↵
|
13 | WsdlToDotnet.Schema.ERROR_NONE_DECLARED);↵ | | 10 | ↵
|
14 | }↵ | | |
|
|
15 | /**↵ | | |
|
16 | * A unit test for JUnit↵ | | |
|
17 | */↵ | | |
|
18 | public void testDestIsDir() throws Exception↵ | | 11 | SignJar.ERROR_NO_ALIAS);↵
|
| | | 12 | }↵
|
|
19 | {↵ | | 13 | public void testNoFiles() {↵
|
20 | expectBuildExceptionContaining("testDestIsDir",↵ | | 14 | expectBuildExceptionContaining("testNoFiles",↵
|
21 | "expected failure",↵ | | 15 | "no files",↵
|
22 | WsdlToDotnet.ERROR_DEST_FILE_IS_DIR);↵ | | 16 | SignJar.ERROR_NO_SOURCE);↵
|
23 | | | 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 |