void test3() {
executeTarget("test3");
assertEquals("original", project.getProperty("DSTAMP"));
}
// ensure <condition> follows the immutability rule
public void test4() {
executeTarget("test4");
assertEquals("original", project.getProperty("test"));
void test9() {
executeTarget("test9");
assertEquals("true", project.getProperty("test"));
}
// All three specified and all three exist -> true
public void test10() {
executeTarget("test10");
assertEquals("true", project.getProperty("test"));
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/ImmutableTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/AvailableTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void test3() {↵ | | 1 | void test9() {↵
|
2 | executeTarget("test3");↵ | | 2 | executeTarget("test9");↵
|
3 | assertEquals("original", project.getProperty("DSTAMP"));↵ | | 3 | assertEquals("true", project.getProperty("test"));↵
|
4 | }↵ | | 4 | }↵
|
|
5 | // ensure <condition> follows the immutability rule↵ | | 5 | // All three specified and all three exist -> true↵
|
6 | public void test4() {↵ | | 6 | public void test10() {↵
|
7 | executeTarget("test4");↵ | | 7 | executeTarget("test10");↵
|
8 | assertEquals("original", project.getProperty("test"));↵ | | 8 | assertEquals("true", project.getProperty("test"));↵
|
9 | | | 9 |
|
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 |