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 testSlower() {
executeTarget("slower");
}
public void testTooSlow() {
expectBuildExceptionContaining(
"too_slow","out of range","out of the range 1-10");
}
public void testTooFast() {
expectBuildExceptionContaining(
"too_fast", "out of range", "out of the range 1-10");
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/NiceTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void setUp() {↵ | | 1 | void testSlower() {↵
|
2 | configureProject("src/etc/testcases/taskdefs/makeurl.xml");↵ | | 2 | executeTarget("slower");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | public void testEmpty() {↵ | | 4 | public void testTooSlow() {↵
|
5 | expectBuildExceptionContaining("testEmpty", "missing property", "property↵ | | 5 | expectBuildExceptionContaining(↵
|
6 | ");↵ | | 6 | "too_slow","out of range","out of the range 1-10");↵
|
7 | }↵ | | 7 | }↵
|
|
8 | public void testNoProperty() {↵ | | 8 | public void testTooFast() {↵
|
9 | expectBuildExceptionContaining("testNoProperty", "missing property", "property↵ | | 9 | expectBuildExceptionContaining(↵
|
10 | ");↵ | | 10 | "too_fast", "out of range", "out of the range 1-10");↵
|
11 | | | 11 |
|
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 |