void testTaskThatDoesntReallyExist() {
expectPropertyUnset("testTaskThatDoesntReallyExist", "testTaskThatDoesntReallyExist");
}
public void testType() {
expectPropertySet("testType", "testType");
}
public void testPreset() {
expectPropertySet("testPreset", "testPreset");
void testDuplicateTextName2() {
expectBuildException(
"duplicatetextname2",
"the attribute name \"text\" has already been used by the text element");
}
public void testEscape() {
expectLog(
"escape",
"a@b or a@b is avalue@bvalue");
}
public void testAttributeDescription() {
expectLog(
"attribute.description",
"description is hello world");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/condition/TypeFoundTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/MacroDefTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testTaskThatDoesntReallyExist() {↵ | | 1 | void test↵
|
2 | expectPropertyUnset("testTaskThatDoesntReallyExist", "testTaskThatDoesntReallyExis↵ | | 2 | DuplicateTextName2() {↵
|
| | | 3 | expectBuildException(↵
|
| | | 4 | "duplicatetextname2",↵
|
3 | t");↵ | | 5 | "the attribute name \"text\" has already been used by the text element");↵
|
4 | }↵ | | 6 | }↵
|
|
5 | public void testType() {↵ | | 7 | public void testEscape() {↵
|
6 | expectPropertySet("testType", "testTyp↵ | | 8 | expectLog(↵
|
| | | 9 | "escape",↵
|
7 | e");↵ | | 10 | "a@b or a@b is avalue@bvalue");↵
|
8 | }↵ | | 11 | }↵
|
|
9 | public void testPreset() {↵ | | 12 | public void test↵
|
10 | expectPropertySet("testPreset",↵ | | 13 | AttributeDescription() {↵
|
| | | 14 | expectLog(↵
|
| | | 15 | "attribute.description",↵
|
11 | "testPreset");↵ | | 16 | "description is hello world");↵
|
12 | | | 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 |