EchoTest(String name) {
super(name);
}
public void setUp() {
configureProject("src/etc/testcases/taskdefs/echo.xml");
}
public void tearDown() {
executeTarget("clean");
}
// Output an empty String
public void test1() {
expectLog("test1", "");
ConditionTest(String name) {
super(name);
}
/**
* The JUnit setup method
*/
public void setUp() {
configureProject("src/etc/testcases/taskdefs/condition.xml");
}
/**
* The teardown method for JUnit
*/
public void tearDown() {
executeTarget("cleanup");
}
public void testBasic() {
expectPropertySet("basic","basic");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/EchoTest.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 | EchoTest(String name) {↵ | | 1 | ConditionTest(String name) {↵
|
2 | super(name);↵ | | 2 | super(name);↵
|
3 | }↵ | | 3 | }↵
|
|
|
| | | 4 | /**↵
|
| | | 5 | * The JUnit setup method↵
|
| | | 6 | */↵
|
4 | public void setUp() {↵ | | 7 | public void setUp() {↵
|
5 | configureProject("src/etc/testcases/taskdefs/echo.xml");↵ | | 8 | configureProject("src/etc/testcases/taskdefs/condition.xml");↵
|
6 | }↵ | | 9 | }↵
|
|
|
| | | 10 | /**↵
|
| | | 11 | * The teardown method for JUnit↵
|
| | | 12 | */↵
|
7 | public void tearDown() {↵ | | 13 | public void tearDown() {↵
|
8 | executeTarget("clean");↵ | | 14 | executeTarget("cleanup");↵
|
9 | }↵ | | 15 | }↵
|
|
10 | // Output an empty String↵ | | |
|
11 | public void test1() {↵ | | 16 | public void testBasic() {↵
|
12 | expectLog("test1", "");↵ | | 17 | expectPropertySet("basic","basic");↵
|
13 | | | 18 |
|
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 |