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.")
public void tearDown() {
executeTarget("cleanup");
}
public void test1() {
expectBuildException("test1", "required argument, target, missing");
}
public void test2() {
expectBuildException("test2", "Invalid output directory")
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ConcatTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/ANTLRTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public void tearDown() {↵ | | 1 | public void tearDown() {↵
|
2 | executeTarget("cleanup");↵ | | 2 | executeTarget("cleanup");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | ↵
|
5 | * Expect an exception when insufficient information is provided.↵ | | |
|
6 | */↵ | | |
|
7 | public void test1() {↵ | | |
|
8 | expectBuildException("test1", "Insufficient information.");↵ | | |
|
9 | }↵ | | |
|
|
10 | /**↵ | | |
|
11 | * Expect an exception when the destination file ↵ | | 5 | public void test1() {↵
|
12 | is invalid.↵ | | 6 | expectBuildException("test1", "required argument, target, missing");↵
|
13 | */↵ | | 7 | }↵
|
|
14 | public void test2() {↵ | | 8 | public void test2() {↵
|
15 | expectBuildException("test2", "Invalid destination file.") | | 9 | expectBuildException("test2", "Invalid output directory")
|
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 |