File path: /columba-1.4-src/calendar/src/test/java/org/columba/calendar/store/LocalCalendarStoreTest.java | File path: /columba-1.4-src/calendar/src/test/java/org/columba/calendar/store/LocalXMLFileStoreTest.java | |||
Method name: void testAddGet()
|
Method name: void testAddGet()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | boolean exists = storage.exists(uuid);↵ | 1 | boolean exists = storage.exists(uuid);↵ | |
2 | assertTrue(exists);↵ | 2 | assertTrue(exists);↵ | |
3 | IComponentInfo result = storage.get(uuid);↵ | 3 | Document result = storage.load(uuid);↵ | |
4 | assertNotNull(result); | 4 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 16 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | boolean exists = storage.exists(uuid); |
| 4 | boolean exists = storage.exists(uuid); | |||||||||||
8 | assertTrue(exists); | 5 | assertTrue(exists); | ||||||||||||
| 6 | Document result = storage.load(uuid); | |||||||||||||
9 | IComponentInfo result = storage.get(uuid); | | |||||||||||||
10 | assertNotNull(result); |
| 7 | assertNotNull(result); |
Row | Violation |
---|---|
1 | Type org.columba.calendar.store.LocalCalendarStore of variable storage does not match with type org.columba.calendar.store.LocalXMLFileStore of variable storage |
2 | Type org.columba.calendar.model.api.IComponentInfo of variable result does not match with type org.jdom.Document of variable result |