void testDoubleNotPresent() {
expectLogContaining("double-notpresent", "hi");
}
public void testNoResourceOnErrorFailAll(){
this.expectBuildExceptionContaining("noresourcefailall","the requested resource does not exist","Could not load definitions from resource ");
}
public void testNoResourceOnErrorFail(){
expectLogContaining("noresourcefail","Could not load definitions from resource ");
void testIstrueFalse() {
expectPropertyUnset("istrue-false","istrue-false");
}
public void testIstrueIncomplete1() {
expectSpecificBuildException("istrue-incomplete",
"Missing attribute",
"Nothing to test for truth");
}
public void testIsfalseTrue() {
expectPropertyUnset("isfalse-true","isfalse-true");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/TypedefTest.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 testDoubleNotPresent() {↵ | | 1 | void testIstrueFalse() {↵
|
2 | expectLogContaining("double-notpresent", "hi");↵ | | 2 | expectPropertyUnset("istrue-false","istrue-false");↵
|
3 | }↵ | | 3 | }↵
|
4 | ↵ | | |
|
|
5 | public void testNoResourceOnErrorFailAll(){↵ | | 4 | public void testIstrueIncomplete1() {↵
|
6 | this.expectBuildExceptionContaining("noresourcefailall","the requested resource does not exist","Could not load definitions from resource ↵ | | 5 | expectSpecificBuildException("istrue-incomplete",↵
|
| | | 6 | "Missing attribute",↵
|
7 | ");↵ | | 7 | "Nothing to test for truth");↵
|
8 | }↵ | | 8 | }↵
|
9 | ↵ | | |
|
10 | public void testNoResourceOnErrorFail(){↵ | | 9 | public void testIsfalseTrue() {↵
|
11 | expectLogContaining("noresourcefail","Could not load definitions from resource ");↵ | | 10 | expectPropertyUnset("isfalse-true","isfalse-true");↵
|
12 | | | 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 |