void testNoSourcefileDefined() {
expectBuildException("testNoSourcefileDefined",
"source file not defined");
}
/**
* A unit test for JUnit
*/
public void testNoPropertyDefined() {
expectBuildException("testNoPropertyDefined",
"output property not defined");
}
/**
* A unit test for JUnit
*/
public void testNoSourcefilefound() {
expectBuildExceptionContaining("testNoSourcefilefound",
"File not found", " doesn't exist");
}
void testNestedB() {
expectLogContaining("nested.b", "add B called");
}
public void testNestedC() {
expectLogContaining("nested.c", "add C called");
}
public void testNestedAB() {
expectBuildExceptionContaining(
"nested.ab", "Should have got ambiguous", "ambiguous");
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/LoadFileTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/AddTypeTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testNoSourcefileDefined() {↵ | | 1 | void testNestedB() {↵
|
2 | expectBuildException("testNoSourcefileDefined",↵ | | 2 | expectLogContaining("nest↵
|
3 | "source file not defined");↵ | | |
|
4 | }↵ | | |
|
|
|
5 | /**↵ | | |
|
6 | * A unit test for JUnit↵ | | |
|
7 | */↵ | | 3 | ed.b", "add B called");↵
|
| | | 4 | }↵
|
|
8 | public void testNoPropertyDefined() {↵ | | 5 | public void testNestedC() {↵
|
9 | expectBuildException("testNoPropertyDefined",↵ | | 6 | expectLogContaining("nest↵
|
10 | "output property not defined");↵ | | |
|
11 | }↵ | | |
|
|
|
12 | /**↵ | | |
|
13 | * A unit test for JUnit↵ | | |
|
14 | */↵ | | 7 | ed.c", "add C called");↵
|
| | | 8 | }↵
|
|
15 | public void testNoSourcefilefound() {↵ | | 9 | public void testNestedAB() {↵
|
16 | expectBuildExceptionContaining("testNoSourcefilefound",↵ | | 10 | expectBuildExceptionContaining(↵
|
17 | "Fil↵ | | |
|
18 | e not found", " doesn't exist");↵ | | 11 | "nested.ab", "Should have got ambiguous", "ambiguous");↵
|
19 | } | | 12 | }
|
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 |