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 testReferences() {
expectAssertion("test-references");
}
public void testMultipleAssertions() {
expectBuildExceptionContaining("test-multiple-assertions",
"multiple assertions rejected",
"Only one assertion declaration is allowed");
}
public void testReferenceAbuse() {
expectBuildExceptionContaining("test-reference-abuse",
"reference abuse rejected",
"You must not specify");
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/types/AssertionsTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void setUp() {↵ | | 1 | void ↵
|
2 | configureProject("src/etc/testcases/taskdefs/makeurl.xml↵ | | 2 | testReferences() {↵
|
3 | ");↵ | | 3 | expectAssertion("test-references");↵
|
4 | }↵ | | 4 | }↵
|
|
5 | public void testEmpty() {↵ | | 5 | public void testMultipleAssertions() {↵
|
6 | expectBuildExceptionContaining("testEmpty", "missing property", "property↵ | | 6 | expectBuildExceptionContaining("test-multiple-assertions",↵
|
| | | 7 | "multiple assertions rejected",↵
|
7 | ");↵ | | 8 | "Only one assertion declaration is allowed");↵
|
8 | }↵ | | 9 | }↵
|
|
9 | public void testNoProperty() {↵ | | 10 | public void testReferenceAbuse() {↵
|
10 | expectBuildExceptionContaining("testNoProperty", "missing property", "propert↵ | | 11 | expectBuildExceptionContaining("test-reference-abuse",↵
|
| | | 12 | "reference abuse rejected",↵
|
11 | y");↵ | | 13 | "You must not specify");↵
|
12 | | | 14 |
|
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 |