Skip to content

Commit fab8cfb

Browse files
authored
Merge pull request #346 from GSI-CS-CO/restyled/fix-table-plugin-row-hashcode-equals
Restyle TableViewer: fix calls to hashCode of DataSetsRow
2 parents 280fe56 + e39973a commit fab8cfb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chartfx-chart/src/test/java/de/gsi/chart/plugins/TableViewerTest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -104,23 +104,23 @@ public void testThatDataSetsRowHashCodeEqualsWorks() throws TimeoutException {
104104

105105
@SuppressWarnings("unchecked")
106106
TableView<DataSetsRow> tableView = (TableView<DataSetsRow>) tableViewer.getTable();
107-
107+
108108
// Equals/hashCode with self is true
109109
tableView.getSelectionModel().select(0);
110110
DataSetsRow firstRowItem = tableView.getSelectionModel().getSelectedItem();
111111
assertEquals(firstRowItem.hashCode(), firstRowItem.hashCode());
112112
assertTrue(firstRowItem.equals(firstRowItem));
113-
113+
114114
// Equals/hashCode with other row is false
115115
tableView.getSelectionModel().clearAndSelect(1);
116116
DataSetsRow secondRowItem = tableView.getSelectionModel().getSelectedItem();
117117
assertNotEquals(firstRowItem.hashCode(), secondRowItem.hashCode());
118118
assertFalse(firstRowItem.equals(secondRowItem));
119-
119+
120120
// Equals with other type is false
121121
assertFalse(firstRowItem.equals(new Object()));
122122
}
123-
123+
124124
private Button locateTableViewButton(final FlowPane toolbar) {
125125
return fxRobot.from(toolbar) //
126126
.lookup("." + BUTTON_BAR_STYLE_CLASS + " > ." + BUTTON_SWITCH_TABLE_VIEW_STYLE_CLASS) //

0 commit comments

Comments
 (0)