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'");
}
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'");
}
public void testNewerStylesheet() throws Exception {
expectFileContains("testNewerStylesheet",
"out/out.xml",
"new-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 testTransferParameterEmpty() throws Exception {↵ | | |
|
2 | expectFileContains("testTransferParameterEmpty",↵ | | |
|
3 | "out/out.xml",↵ | | |
|
4 | "empty=''");↵ | | |
|
5 | }↵ | | |
|
|
6 | public void testTransferParameterUnset() throws Exception {↵ | | 1 | void testTransferParameterUnset() throws Exception {↵
|
7 | expectFileContains("testTransferParameterUnset",↵ | | 2 | expectFileContains("testTransferParameterUnset",↵
|
8 | "out/out.xml",↵ | | 3 | "out/out.xml",↵
|
9 | "undefined='${value}'");↵ | | 4 | "undefined='${value}'");↵
|
10 | }↵ | | 5 | }↵
|
|
11 | public void testTransferParameterUnsetWithIf() throws Exception {↵ | | 6 | public void testTransferParameterUnsetWithIf() throws Exception {↵
|
12 | expectFileContains("testTransferParameterUnsetWithIf",↵ | | 7 | expectFileContains("testTransferParameterUnsetWithIf",↵
|
13 | "out/out.xml",↵ | | 8 | "out/out.xml",↵
|
14 | "undefined='undefined default value'");↵ | | 9 | "undefined='undefined default value'");↵
|
15 | } | | 10 | }↵
|
|
| | | 11 | public void testNewerStylesheet() throws Exception {↵
|
| | | 12 | expectFileContains("testNewerStylesheet",↵
|
| | | 13 | "out/out.xml",↵
|
| | | 14 | "new-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 |