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}'");
void testTransferParameterEmpty() throws Exception {
expectFileContains("testTransferParameterEmpty",
"out/out.xml",
"empty=''");
}
public void testTransferParameterUnset() throws Exception {
expectFileContains("testTransferParameterUnset",
"out/out.xml",
"undefined='${value}'");
}
public void testTransferParameterUnsetWithIf() throws Exception {
expectFileContains("testTransferParameterUnsetWithIf",
"out/out.xml",
"undefined='undefined default value'");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/StyleTest.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 testTransferParameterSet() throws Exception {↵ | | |
|
2 | expectFileContains("testTransferParameterSet", // target↵ | | |
|
3 | "out/out.xml", // file↵ | | |
|
4 | "set='myvalue'"); // exptected string↵ | | |
|
5 | }↵ | | |
|
|
6 | public void testTransferParameterEmpty() throws Exception {↵ | | 1 | void testTransferParameterEmpty() throws Exception {↵
|
7 | expectFileContains("testTransferParameterEmpty",↵ | | 2 | expectFileContains("testTransferParameterEmpty",↵
|
8 | "out/out.xml",↵ | | 3 | "out/out.xml",↵
|
9 | "empty=''");↵ | | 4 | "empty=''");↵
|
10 | }↵ | | 5 | }↵
|
|
11 | public void testTransferParameterUnset() throws Exception {↵ | | 6 | public void testTransferParameterUnset() throws Exception {↵
|
12 | expectFileContains("testTransferParameterUnset",↵ | | 7 | expectFileContains("testTransferParameterUnset",↵
|
13 | "out/out.xml",↵ | | 8 | "out/out.xml",↵
|
14 | "undefined='${value}'");↵ | | 9 | "undefined='${value}'");↵
|
15 | | | 10 | }↵
|
|
| | | 11 | public void testTransferParameterUnsetWithIf() throws Exception {↵
|
| | | 12 | expectFileContains("testTransferParameterUnsetWithIf",↵
|
| | | 13 | "out/out.xml",↵
|
| | | 14 | "undefined='undefined default value'");↵
|
| | | 15 |
|
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 |