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", "");
CopyfileTest(String name) {
super(name);
}
public void setUp() {
configureProject("src/etc/testcases/taskdefs/copyfile.xml");
}
public void tearDown() {
executeTarget("cleanup");
}
public void test1() {
expectBuildException("test1", "required argument not specified");
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/CopyfileTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | EchoTest(String name) {↵ | | 1 | CopyfileTest(String name) {↵
|
2 | super(name);↵ | | 2 | super(name);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | public void setUp() {↵ | | 4 | public void setUp() {↵
|
5 | configureProject("src/etc/testcases/taskdefs/echo.xml");↵ | | 5 | configureProject("src/etc/testcases/taskdefs/copyfile.xml");↵
|
6 | }↵ | | 6 | }↵
|
|
7 | public void tearDown() {↵ | | 7 | public void tearDown() {↵
|
8 | executeTarget("clean");↵ | | 8 | executeTarget("cleanup");↵
|
9 | }↵ | | 9 | }↵
|
|
10 | // Output an empty String↵ | | |
|
11 | public void test1() {↵ | | 10 | public void test1() {↵
|
12 | expectLog("test1", "");↵ | | 11 | expectBuildException("test1", "required argument not specified");↵
|
13 | | | 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 |