void testEmpty() {
expectBuildExceptionContaining("testEmpty", "missing property", "property");
}
public void testNoProperty() {
expectBuildExceptionContaining("testNoProperty", "missing property", "property");
}
public void testNoFile() {
expectBuildExceptionContaining("testNoFile", "missing file", "file");
void testTransferParameterSet() throws Exception {
expectFileContains("testTransferParameterSet", // target
"out/out.xml", // file
"set='myvalue'"); // exptected string
}
public void testTransferParameterEmpty() throws Exception {
expectFileContains("testTransferParameterEmpty",
"out/out.xml",
"empty=''");
}
public void testTransferParameterUnset() throws Exception {
expectFileContains("testTransferParameterUnset",
"out/out.xml",
"undefined='${value}'");
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/StyleTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testEmpty() {↵ | | 1 | void testTransferParameterSet() throws Exception {↵
|
2 | expectBuildExceptionContaining("testEmpty", "missing property", "property");↵ | | 2 | expectFileContains("test↵
|
3 | }↵ | | |
|
|
4 | public void testNoProperty()↵ | | 3 | TransferParameterSet", // target↵
|
| | | 4 | "out/out.xml", // file↵
|
| | | 5 | "set='myvalue'"); // exptected string↵
|
| | | 6 | }↵
|
|
5 | {↵ | | 7 | public void testTransferParameterEmpty() throws Exception {↵
|
6 | expectBuildExceptionContaining("testNoProperty", "missing property", "property");↵ | | 8 | expectFileContains("test↵
|
7 | }↵ | | |
|
|
8 | public void testNoFile()↵ | | 9 | TransferParameterEmpty",↵
|
| | | 10 | "out/out.xml",↵
|
| | | 11 | "empty=''");↵
|
| | | 12 | }↵
|
|
9 | {↵ | | 13 | public void testTransferParameterUnset() throws Exception {↵
|
10 | expectBuildExceptionContaining("testNoFile", "missing file", "file↵ | | 14 | expectFileContains("testTransferParameterUnset",↵
|
| | | 15 | "out/out.xml",↵
|
11 | ");↵ | | 16 | "undefined='${value}'");↵
|
12 | | | 17 |
|
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 |