void setUp() {
configureProject("src/etc/testcases/taskdefs/get.xml");
}
public void tearDown() {
executeTarget("cleanup");
}
public void test1() {
expectBuildException("test1", "required argument missing");
}
public void test2() {
expectBuildException("test2", "required argument missing");
void setUp() {
configureProject("src/etc/testcases/taskdefs/concat.xml");
}
/**
* Test tear down, called by the unit test framework prior to each
* test.
*/
public void tearDown() {
executeTarget("cleanup");
}
/**
* Expect an exception when insufficient information is provided.
*/
public void test1() {
expectBuildException("test1", "Insufficient information.");
}
/**
* Expect an exception when the destination file is invalid.
*/
public void test2() {
expectBuildException("test2", "Invalid destination file.");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/GetTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ConcatTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void setUp() {↵ | | 1 | void setUp() {↵
|
2 | configureProject("src/etc/testcases/taskdefs/get.xml");↵ | | 2 | configureProject("src/etc/testcases/taskdefs/concat.xml");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | public void tearDown() {↵ | | 4 | ↵
|
5 | executeTarget("cleanup");↵ | | |
|
6 | }↵ | | |
|
|
7 | public void test1() {↵ | | |
|
8 | expectBuildException("test1", "required argument missing");↵ | | |
|
9 | }↵ | | |
|
| | | 5 | /**↵
|
| | | 6 | * Test tear down, called by the unit test framework prior to each↵
|
| | | 7 | * test.↵
|
| | | 8 | */↵
|
| | | 9 | public void tearDown() {↵
|
| | | 10 | executeTarget("cleanup");↵
|
| | | 11 | }↵
|
|
| | | 12 | /**↵
|
| | | 13 | * Expect an exception when insufficient information is provided.↵
|
| | | 14 | */↵
|
| | | 15 | public void test1() {↵
|
| | | 16 | expectBuildException("test1", "Insufficient information.");↵
|
| | | 17 | }↵
|
|
| | | 18 | /**↵
|
| | | 19 | * Expect an exception when the destination file is invalid.↵
|
| | | 20 | */↵
|
10 | public void test2() {↵ | | 21 | public void test2() {↵
|
11 | expectBuildException("test2", "required argument missing");↵ | | 22 | expectBuildException("test2", "Invalid destination file.");↵
|
12 | | | 23 |
|
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 |