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