void testMapperPath() {
executeTarget("testMapperPath");
}
public void testMapperNoDest() {
expectBuildExceptionContaining("testMapperNoDest",
"two mappers",
SignJar.ERROR_MAPPER_WITHOUT_DEST);
}
public void testTwoMappers() {
expectBuildExceptionContaining("testTwoMappers",
"two mappers",
SignJar.ERROR_TOO_MANY_MAPPERS);
void tearDown() {
executeTarget("teardown");
}
/**
* A unit test for JUnit
*/
public 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);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/SignJarTest.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 testMapperPath() {↵ | | 1 | void tearDown() {↵
|
2 | executeTarget("testMapperPath");↵ | | 2 | executeTarget("teardown");↵
|
3 | }↵ | | 3 | }↵
|
|
|
|
4 | public void testMapperNoDest()↵ | | 4 | /**↵
|
| | | 5 | * A unit test for JUnit↵
|
| | | 6 | */↵
|
5 | {↵ | | 7 | public void testNoParams() throws Exception {↵
|
6 | expectBuildExceptionContaining("testMapperNoDest",↵ | | 8 | expectBuildExceptionContaining("testNoParams",↵
|
7 | "two mappers",↵ | | 9 | "expected failure",↵
|
8 | SignJar.ERROR_MAPPER_WITHOUT_DEST);↵ | | 10 | ↵
|
9 | }↵ | | |
|
|
10 | public void testTwoMappers()↵ | | 11 | WsdlToDotnet.ERROR_NO_DEST_FILE);↵
|
| | | 12 | }↵
|
|
| | | 13 | /**↵
|
| | | 14 | * A unit test for JUnit↵
|
| | | 15 | */↵
|
11 | {↵ | | 16 | public void testNoSrc() throws Exception {↵
|
12 | expectBuildExceptionContaining("testTwoMappers",↵ | | 17 | expectBuildExceptionContaining("testNoSrc",↵
|
13 | "two mappers",↵ | | 18 | "expected failure",↵
|
14 | SignJar.ERROR_TOO_MANY_MAPPERS);↵ | | 19 | WsdlToDotnet.Schema.ERROR_NONE_DECLARED);↵
|
15 | | | 20 |
|
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 |