void testNoPropertyDefined() {
expectBuildException("testNoPropertyDefined",
"output property not defined");
}
/**
* A unit test for JUnit
*/
public void testNoSourcefilefound() {
expectBuildExceptionContaining("testNoSourcefilefound",
"File not found", " doesn't exist");
}
/**
* A unit test for JUnit
*/
public void testFailOnError()
throws BuildException {
expectPropertyUnset("testFailOnError","testFailOnError");
void testTask() {
expectPropertySet("testTask", "testTask");
}
public void testUndefined() {
expectBuildExceptionContaining("testUndefined","left out the name attribute", "No type specified");
}
public void testTaskThatIsntDefined() {
expectPropertyUnset("testTaskThatIsntDefined", "testTaskThatIsntDefined");
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/taskdefs/condition/TypeFoundTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testNoPropertyDefined() {↵ | | 1 | void testTask() {↵
|
2 | expectBuildException("testNoPropertyDefined",↵ | | 2 | expect↵
|
3 | "output property not defined");↵ | | |
|
4 | }↵ | | |
|
|
|
5 | /**↵ | | |
|
6 | * A unit test for JUnit↵ | | |
|
7 | */↵ | | 3 | PropertySet("testTask", "testTask");↵
|
| | | 4 | }↵
|
|
8 | public void testNoSourcefilefound() {↵ | | 5 | public void testUndefined() {↵
|
9 | expectBuildExceptionContaining("testNoSourcefilefound",↵ | | 6 | expectBuildExceptionContaining("test↵
|
10 | "File not found", " doesn't exist");↵ | | |
|
11 | }↵ | | |
|
|
12 | /**↵ | | |
|
13 | * A unit test for JUnit↵ | | |
|
14 | */↵ | | |
|
15 | public void testFailOnError()↵ | | |
|
16 | throws BuildException↵ | | 7 | Undefined","left out the name attribute", "No type specified");↵
|
| | | 8 | }↵
|
|
17 | {↵ | | 9 | public void testTaskThatIsntDefined() {↵
|
18 | expectPropertyUnset("testFailOnError","testFailOnError");↵ | | 10 | expectPropertyUnset("testTaskThatIsntDefined", "testTaskThatIsntDefined");↵
|
19 | | | 11 |
|
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 |