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);
}
void testVerifyJar() {
executeTarget("testVerifyJar");
}
public void testVerifyNoArgs() {
expectBuildExceptionContaining("testVerifyNoArgs",
"no args",
AbstractJarSignerTask.ERROR_NO_SOURCE);
}
public void testVerifyJarUnsigned() {
expectBuildExceptionContaining("testVerifyJarUnsigned",
"unsigned JAR file",
VerifyJar.ERROR_NO_VERIFY);
}
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 tearDown() {↵ | | 1 | void testVerifyJar() {↵
|
2 | executeTarget("teardown");↵ | | 2 | executeTarget("te↵
|
3 | }↵ | | |
|
|
|
|
4 | /**↵ | | |
|
5 | * A unit test for JUnit↵ | | |
|
6 | */↵ | | |
|
7 | public void testNoParams() throws Exception↵ | | 3 | stVerifyJar");↵
|
| | | 4 | }↵
|
|
8 | {↵ | | 5 | public void testVerifyNoArgs() {↵
|
9 | expectBuildExceptionContaining("testNoParams",↵ | | 6 | expectBuildExceptionContaining("testVerifyNoArgs",↵
|
10 | "expected failure",↵ | | 7 | "no args",↵
|
11 | WsdlToDotnet.ERROR_NO_DEST_FILE);↵ | | 8 | AbstractJarSignerTask.ERROR_NO_SOURCE);↵
|
12 | }↵ | | 9 | }↵
|
|
13 | /**↵ | | 10 | ↵
|
14 | * A unit test for JUnit↵ | | |
|
15 | */↵ | | |
|
16 | public void testNoSrc() throws Exception {↵ | | 11 | public void testVerifyJarUnsigned() {↵
|
17 | expectBuildExceptionContaining("testNoSrc",↵ | | 12 | expectBuildExceptionContaining("testVerifyJarUnsigned",↵
|
18 | "expected failure",↵ | | 13 | "unsigned JAR file",↵
|
19 | WsdlToDotnet.Schema.ERROR_NONE_DECLARED);↵ | | 14 | VerifyJar.ERROR_NO_VERIFY);↵
|
20 | } | | 15 | }
|
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 |