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");
}
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");
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/NiceTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/MakeUrlTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testSlower() {↵ | | 1 | void setUp() {↵
|
2 | executeTarget("slower");↵ | | 2 | configureProject("src/etc/testcases/taskdefs/makeurl.xml");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | public void testTooSlow() {↵ | | 4 | public void testEmpty() {↵
|
5 | expectBuildExceptionContaining(↵ | | 5 | expectBuildExceptionContaining(↵
|
6 | "too_slow","out of range","out of the range 1-10");↵ | | 6 | "testEmpty", "missing property", "property");↵
|
7 | }↵ | | 7 | }↵
|
|
8 | public void testTooFast() {↵ | | 8 | public void testNoProperty() {↵
|
9 | expectBuildExceptionContaining(↵ | | 9 | expectBuildExceptionContaining(↵
|
10 | "too_fast", "out of range", "out of the range 1-10");↵ | | 10 | "testNoProperty", "missing property", "property");↵
|
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 |