File path: /columba-1.4-src/core/src/test/java/org/columba/core/command/DefaultProcessorTest.java | File path: /columba-1.4-src/core/src/test/java/org/columba/core/command/DefaultProcessorTest.java | |||
Method name: void testAddOp_PriorityOrdering()
|
Method name: void testAddOp_PriorityOrderingWithSynchronized()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | assertEquals(↵ | 1 | assertEquals(↵ | |
2 | 2,↵ | 2 | 3,↵ | |
3 | ((TestCommand) ((OperationItem) processor.operationQueue.get(2))↵ | 3 | ((TestCommand) ((OperationItem) processor.operationQueue.get(2))↵ | |
4 | .getOperation()).getId());↵ | 4 | .getOperation()).getId());↵ | |
5 | assertEquals(↵ | 5 | assertEquals(↵ | |
6 | 5,↵ | 6 | 4,↵ | |
7 | ((TestCommand) ((OperationItem) processor.operationQueue.get(3))↵ | 7 | ((TestCommand) ((OperationItem) processor.operationQueue.get(3))↵ | |
8 | .getOperation()).getId());↵ | 8 | .getOperation()).getId());↵ | |
9 | assertEquals(↵ | 9 | assertEquals(↵ | |
10 | 4,↵ | 10 | 5,↵ | |
11 | ((TestCommand) ((OperationItem) processor.operationQueue.get(4))↵ | 11 | ((TestCommand) ((OperationItem) processor.operationQueue.get(4))↵ | |
12 | .getOperation()).getId()); | 12 |
| |
See real code fragment | See real code fragment |
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 declared in the same class |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
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 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19 | assertEquals(2, ((TestCommand)((OperationItem)processor.operationQueue.get(2)).getOperation()).getId()); |
| 21 | assertEquals(3, ((TestCommand)((OperationItem)processor.operationQueue.get(2)).getOperation()).getId()); | ||||||||||
20 | assertEquals(5, ((TestCommand)((OperationItem)processor.operationQueue.get(3)).getOperation()).getId()); |
| 23 | assertEquals(5, ((TestCommand)((OperationItem)processor.operationQueue.get(4)).getOperation()).getId()); | ||||||||||
21 | assertEquals(4, ((TestCommand)((OperationItem)processor.operationQueue.get(4)).getOperation()).getId()); |
| 22 | assertEquals(4, ((TestCommand)((OperationItem)processor.operationQueue.get(3)).getOperation()).getId()); |
Row | Violation |
---|