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>");
void testFilesmatchMatch() {
expectPropertySet("filesmatch-match","filesmatch-match");
}
public void testFilesmatchDifferentSizes() {
expectPropertyUnset("filesmatch-different-sizes",
"filesmatch-different-sizes");
}
public void testFilesmatchDifferentOnemissing() {
expectPropertyUnset("filesmatch-different-onemissing",
"filesmatch-different-onemissing");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTest.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 testXml() {↵ | | 1 | void testFilesmatchMatch() {↵
|
2 | expectOutputContaining(↵ | | 2 | expect↵
|
3 | "xml", "<DependsUpon>");↵ | | |
|
4 | }↵ | | |
|
|
5 | /**↵ | | |
|
6 | * Test fork↵ | | |
|
7 | * - forked output goes to log↵ | | |
|
8 | */↵ | | |
|
9 | public void testFork() {↵ | | |
|
10 | expectLogContaining(↵ | | |
|
11 | "fork", "Package: org.apache.tools.ant.util.facade");↵ | | |
|
12 | }↵ | | |
|
|
13 | /**↵ | | |
|
14 | * Test fork xml↵ | | |
|
15 | */↵ | | |
|
16 | public void testForkXml() {↵ | | |
|
17 | expectLogContain↵ | | 3 | PropertySet("filesmatch-match","filesmatch-match");↵
|
| | | 4 | }↵
|
|
| | | 5 | public void testFilesmatchDifferentSizes() {↵
|
| | | 6 | expectPropertyUnset("filesmatch-different-sizes",↵
|
| | | 7 | "filesmatch-different-sizes");↵
|
| | | 8 | }↵
|
|
| | | 9 | public void testFilesmatchDifferentOnemissing() {↵
|
18 | ing(↵ | | 10 | expectPropertyUnset("filesmatch-different-onemissing",↵
|
19 | "fork-xml", "<DependsUpon>");↵ | | 11 | "filesmatch-different-onemissing");↵
|
20 | | | 12 |
|
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 |