void testIgnoreCase() {
expectLog(
"ignorecase",
"a is ab is b");
}
public void testIgnoreElementCase() {
expectLog(
"ignore-element-case",
"nested elementnested element");
}
public void testTextElement() {
expectLogContaining(
"textelement", "Hello world");
}
public void testTextTrim() {
expectLogContaining(
"text.trim", "[Hello world]");
}
void testAndFails() {
expectPropertyUnset("andfails","andfails");
}
public void testAndIncomplete() {
expectPropertyUnset("andincomplete","andincomplete");
}
public void testAndempty() {
expectPropertySet("andempty","andempty");
}
public void testOr() {
expectPropertySet("or","or");
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/MacroDefTest.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 testIgnoreCase() {↵ | | 1 | void testAndFails() {↵
|
2 | expectLog(↵ | | 2 | expect↵
|
3 | "ignorecase",↵ | | |
|
4 | "a is ab is b");↵ | | 3 | PropertyUnset("andfails","andfails");↵
|
5 | }↵ | | 4 | }↵
|
|
6 | public void testIgnoreElementCase() {↵ | | 5 | public void testAndIncomplete() {↵
|
7 | expectLog(↵ | | 6 | expect↵
|
8 | "ignore-element-case",↵ | | |
|
9 | "nested elementnested element");↵ | | 7 | PropertyUnset("andincomplete","andincomplete");↵
|
10 | }↵ | | 8 | }↵
|
|
11 | public void testTextElement() {↵ | | 9 | public void testAndempty() {↵
|
12 | expectLogContaining(↵ | | 10 | expect↵
|
13 | "textelement", "Hello world");↵ | | 11 | PropertySet("andempty","andempty");↵
|
14 | }↵ | | 12 | }↵
|
|
15 | public void testTextTrim() {↵ | | 13 | public void testOr() {↵
|
16 | expectLogContaining(↵ | | 14 | expect↵
|
17 | "text.trim", "[Hello world]");↵ | | 15 | PropertySet("or","or");↵
|
18 | } | | 16 | }
|
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 |