assertFalse(regionRoot == null);
assertEquals(0, regionRoot.getChildrenNames().size());
assertTrue(regionRoot.isValid());
assertTrue(regionRoot.isResident());
assertFalse(regionRoot == null);
assertEquals(0, regionRoot.getChildrenNames().size());
assertTrue(regionRoot.isValid());
assertTrue(regionRoot.isResident());
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractGeneralDataRegionTestCase.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractGeneralDataRegionTestCase.java
|
Method name: void evictOrRemoveAllTest(String)
|
|
Method name: void evictOrRemoveAllTest(String)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | assertFalse(regionRoot == null);↵ | | 1 | assertFalse(regionRoot == null);↵
|
2 | assertEquals(0, regionRoot.getChildrenNames().size());↵ | | 2 | assertEquals(0, regionRoot.getChildrenNames().size());↵
|
3 | assertTrue(regionRoot.isValid());↵ | | 3 | assertTrue(regionRoot.isValid());↵
|
4 | assertTrue(regionRoot.isResident()); | | 4 | assertTrue(regionRoot.isResident());
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 16 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
52 | assertFalse(regionRoot == null); | | 44 | assertFalse(regionRoot == null); |
53 | assertEquals(0, regionRoot.getChildrenNames().size()); | | 45 | assertEquals(0, regionRoot.getChildrenNames().size()); |
54 | assertTrue(regionRoot.isValid()); | | 46 | assertTrue(regionRoot.isValid()); |
55 | assertTrue(regionRoot.isResident()); | | 47 | assertTrue(regionRoot.isResident()); |
Precondition Violations (0)
Row |
Violation |