void setUp() {
configureProject("src/etc/testcases/taskdefs/makeurl.xml");
}
public void testEmpty() {
expectBuildExceptionContaining("testEmpty", "missing property", "property");
}
public void testNoProperty() {
expectBuildExceptionContaining("testNoProperty", "missing property", "property");
void testPass() {
executeTarget("testPass");
}
public void testFail() {
expectBuildExceptionContaining("testFail", "must fail", "${foo}=bar");
}
public void testEmpty() {
expectBuildExceptionContaining("testEmpty", "must fail", "No nested XML specified");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/MakeUrlTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/EchoXMLTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void setUp() {↵ | | 1 | void testPass() {↵
|
2 | configureProject("src/etc/testcases/taskdefs/makeurl.xml");↵ | | 2 | executeTarget("testPass");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | public void testEmpty() {↵ | | 4 | public void testFail() {↵
|
5 | expectBuildExceptionContaining("testEmpty", "missing property", "property");↵ | | 5 | expectBuildExceptionContaining("testFail", "must fail", "${foo}=bar");↵
|
6 | }↵ | | 6 | }↵
|
|
7 | public void testNoProperty() {↵ | | 7 | public void testEmpty() {↵
|
8 | expectBuildExceptionContaining("testNoProperty", "missing property", "property");↵ | | 8 | expectBuildExceptionContaining("testEmpty", "must fail", "No nested XML specified");↵
|
9 | | | 9 |
|
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 |