File path: /sql12/test/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/AbstractDataTypeComponentTest.java | File path: /sql12/test/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/AbstractDataTypeComponentTest.java | |||
Method name: void testIsEditableInCell()
|
Method name: void testIsEditableInPopup()
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | Object testObject = getEqualsTestObject();↵ | 1 | Object testObject = getEqualsTestObject();↵ | |
2 | ↵ | 2 | ↵ | |
3 | mockHelper.replayAll();↵ | 3 | mockHelper.replayAll();↵ | |
4 | if (isEditableInCell)↵ | 4 | if (isEditableInPopup)↵ | |
5 | {↵ | 5 | {↵ | |
6 | assertTrue(classUnderTest.isEditableInCell(testObject));↵ | 6 | assertTrue(classUnderTest.isEditableInPopup(testObject));↵ | |
7 | assertTrue(classUnderTest.isEditableInCell(null));↵ | 7 | assertTrue(classUnderTest.isEditableInPopup(null));↵ | |
8 | }↵ | 8 | }↵ | |
9 | else↵ | 9 | else↵ | |
10 | {↵ | 10 | {↵ | |
11 | assertFalse(classUnderTest.isEditableInCell(testObject));↵ | 11 | assertFalse(classUnderTest.isEditableInPopup(testObject));↵ | |
12 | assertFalse(classUnderTest.isEditableInCell(null));↵ | 12 | assertFalse(classUnderTest.isEditableInPopup(null));↵ | |
13 | }↵ | 13 | }↵ | |
14 | mockHelper.verifyAll(); | 14 |
| |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 34 |
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) | 12.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Object testObject = getEqualsTestObject(); | 1 | Object testObject = getEqualsTestObject(); | |||||||||||||
2 | mockHelper.replayAll(); | 2 | mockHelper.replayAll(); | |||||||||||||
3 | if (isEditableInCell) |
| 3 | if (isEditableInPopup) | ||||||||||||
4 | assertTrue(classUnderTest.isEditableInCell(testObject)); |
| 4 | assertTrue(classUnderTest.isEditableInPopup(testObject)); | ||||||||||||
5 | assertTrue(classUnderTest.isEditableInCell(null)); |
| 5 | assertTrue(classUnderTest.isEditableInPopup(null)); | ||||||||||||
else | else | |||||||||||||||
6 | assertFalse(classUnderTest.isEditableInCell(testObject)); |
| 6 | assertFalse(classUnderTest.isEditableInPopup(testObject)); | ||||||||||||
7 | assertFalse(classUnderTest.isEditableInCell(null)); |
| 7 | assertFalse(classUnderTest.isEditableInPopup(null)); | ||||||||||||
8 | mockHelper.verifyAll(); | 8 | mockHelper.verifyAll(); |
Row | Violation |
---|---|
1 | Expression classUnderTest.isEditableInCell(testObject) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression classUnderTest.isEditableInPopup(testObject) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression classUnderTest.isEditableInCell(testObject) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression classUnderTest.isEditableInPopup(testObject) cannot be parameterized, because it has dependencies to/from statements that will be extracted |