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 testXml() {
expectOutputContaining(
"xml", "<DependsUpon>");
}
/**
* Test fork
* - forked output goes to log
*/
public void testFork() {
expectLogContaining(
"fork", "Package: org.apache.tools.ant.util.facade");
}
/**
* Test fork xml
*/
public void testForkXml() {
expectLogContaining(
"fork-xml", "<DependsUpon>");
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/optional/jdepend/JDependTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testIgnoreElementCase() {↵ | | 1 | void testXml() {↵
|
2 | expectLog(↵ | | 2 | expectOutputContaining(↵
|
3 | "ignore-element-case",↵ | | 3 | "xml", "<DependsUpon>");↵
|
4 | ↵ | | 4 | }↵
|
|
5 | "nested elementnested element");↵ | | 5 | /**↵
|
| | | 6 | * Test fork↵
|
| | | 7 | * - forked output goes to log↵
|
6 | }↵ | | 8 | ↵
|
| | | 9 | */↵
|
7 | public void testTextElement() {↵ | | 10 | public void testFork() {↵
|
8 | expectLogContaining(↵ | | 11 | expectLogContaining(↵
|
9 | "textelement", "Hello world");↵ | | 12 | "↵
|
10 | }↵ | | |
|
| | | 13 | fork", "Package: org.apache.tools.ant.util.facade");↵
|
| | | 14 | }↵
|
|
| | | 15 | /**↵
|
| | | 16 | * Test fork xml↵
|
| | | 17 | */↵
|
11 | public void testTextTrim() {↵ | | 18 | public void testForkXml() {↵
|
12 | expectLogContaining(↵ | | 19 | expectLogContaining(↵
|
13 | "text.trim", "[Hello world]");↵ | | 20 | "fork-xml", "<DependsUpon>");↵
|
14 | | | 21 |
|
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 |