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