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 testFilesmatchIdentical() {
expectPropertySet("filesmatch-identical","filesmatch-identical");
}
public void testFilesmatchIncomplete() {
expectSpecificBuildException("filesmatch-incomplete",
"Missing file2 attribute",
"both file1 and file2 are required in filesmatch");
}
public void testFilesmatchOddsizes() {
expectPropertyUnset("filesmatch-oddsizes","filesmatch-oddsizes");
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/ConditionTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testNoPropertyDefined() {↵ | | 1 | void test↵
|
2 | expectBuildException("testNo↵ | | 2 | FilesmatchIdentical() {↵
|
3 | PropertyDefined",↵ | | 3 | expectProperty↵
|
4 | "output property not defined");↵ | | |
|
5 | }↵ | | |
|
|
|
6 | /**↵ | | |
|
7 | * A unit test for JUnit↵ | | |
|
8 | */↵ | | |
|
9 | public void testNoSourcefilefound↵ | | 4 | Set("filesmatch-identical","filesmatch-identical");↵
|
| | | 5 | }↵
|
|
|
10 | () {↵ | | 6 | public void testFilesmatchIncomplete() {↵
|
11 | expectBuildExceptionContaining("testNoSourcefilefound",↵ | | 7 | expectSpecificBuildException↵
|
12 | "File not found", " doesn't exist");↵ | | 8 | ("filesmatch-incomplete",↵
|
| | | 9 | "Missing file2 attribute",↵
|
13 | }↵ | | 10 | ↵
|
|
14 | /**↵ | | 11 | ↵
|
15 | * A unit test for JUnit↵ | | 12 | "both file1 and file2 are required in filesmatch");↵
|
16 | */↵ | | 13 | }↵
|
|
17 | public void testFailOnError()↵ | | 14 | public void testFil↵
|
18 | throws BuildException {↵ | | |
|
19 | expectPropertyUnset("testFailOnError","testFailOnError↵ | | 15 | esmatchOddsizes() {↵
|
20 | ");↵ | | 16 | expectPropertyUnset("filesmatch-oddsizes","filesmatch-oddsizes");↵
|
21 | | | 17 |
|
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 |