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