File path: /sql12/test/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeOtherTest.java | File path: /sql12/test/src/net/sourceforge/squirrel_sql/client/gui/builders/SquirrelTabbedPaneTest.java | |||
Method name: void testIsEditableInCell()
|
Method name: void testNullPrefs()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 3 | |||
1 | mockHelper.replayAll();↵ | 1 | mockHelper.replayAll();↵ | |
2 | assertFalse(classUnderTest.isEditableInCell(""));↵ | 2 | classUnderTest↵ | |
3 | assertFalse(classUnderTest.isEditableInCell(null));↵ | 3 | = new SquirrelTabbedPane(null, mockApplication);↵ | |
4 | mockHelper.verifyAll(); | 4 |
| |
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 in different classes having the same super class |
Number of node comparisons | 12 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
1 | mockHelper.replayAll(); | 1 | mockHelper.replayAll(); | ||||
|
| 2 | classUnderTest = new SquirrelTabbedPane(null, mockApplication); | ||||
2 | assertFalse(classUnderTest.isEditableInCell("")); | | |||||
3 | assertFalse(classUnderTest.isEditableInCell(null)); | | |||||
4 | mockHelper.verifyAll(); | 3 | mockHelper.verifyAll(); |
Row | Violation |
---|---|
1 | Unmatched statement classUnderTest=new SquirrelTabbedPane(null,mockApplication); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |