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 testRunOne()
|
Method name: void testRunMultiple()
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | TestCommand command1 = new TestCommand(this, 1);↵ | 1 | TestCommand command1 = new TestCommand(this, 1);↵ | |
2 | command1.setPriority(Command.NORMAL_PRIORITY);↵ | 2 | command1.setPriority(Command.NORMAL_PRIORITY);↵ | |
3 | processor.addOp(command1, Command.FIRST_EXECUTION);↵ | 3 | processor.addOp(command1, Command.FIRST_EXECUTION);↵ | |
4 | TestCommand command2 = new TestCommand(this, 2);↵ | 4 | TestCommand command2 = new TestCommand(this, 2);↵ | |
5 | command2.setPriority(Command.NORMAL_PRIORITY);↵ | 5 | command2.setPriority(Command.NORMAL_PRIORITY);↵ | |
6 | command2.setSynchronize(true);↵ | 6 | command2.setSynchronize(true);↵ | |
7 | processor.addOp(command2, Command.FIRST_EXECUTION);↵ | 7 | processor.addOp(command2, Command.FIRST_EXECUTION);↵ | |
8 | processor.startOperation(); | 8 |
| |
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 | 28 |
Number of mapped statements | 8 |
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 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
2 | TestCommand command1 = new TestCommand(this, 1); | 2 | TestCommand command1 = new TestCommand(this, 1); | |
3 | command1.setPriority(Command.NORMAL_PRIORITY); | 3 | command1.setPriority(Command.NORMAL_PRIORITY); | |
4 | processor.addOp(command1, Command.FIRST_EXECUTION); | 4 | processor.addOp(command1, Command.FIRST_EXECUTION); | |
5 | TestCommand command2 = new TestCommand(this, 2); | 5 | TestCommand command2 = new TestCommand(this, 2); | |
6 | command2.setPriority(Command.NORMAL_PRIORITY); | 6 | command2.setPriority(Command.NORMAL_PRIORITY); | |
7 | command2.setSynchronize(true); | 7 | command2.setSynchronize(true); | |
8 | processor.addOp(command2, Command.FIRST_EXECUTION); | 8 | processor.addOp(command2, Command.FIRST_EXECUTION); | |
9 | processor.startOperation(); | 9 | processor.startOperation(); |
Row | Violation |
---|