File tree 1 file changed +4
-4
lines changed
chartfx-chart/src/test/java/de/gsi/chart/plugins
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -104,23 +104,23 @@ public void testThatDataSetsRowHashCodeEqualsWorks() throws TimeoutException {
104
104
105
105
@ SuppressWarnings ("unchecked" )
106
106
TableView <DataSetsRow > tableView = (TableView <DataSetsRow >) tableViewer .getTable ();
107
-
107
+
108
108
// Equals/hashCode with self is true
109
109
tableView .getSelectionModel ().select (0 );
110
110
DataSetsRow firstRowItem = tableView .getSelectionModel ().getSelectedItem ();
111
111
assertEquals (firstRowItem .hashCode (), firstRowItem .hashCode ());
112
112
assertTrue (firstRowItem .equals (firstRowItem ));
113
-
113
+
114
114
// Equals/hashCode with other row is false
115
115
tableView .getSelectionModel ().clearAndSelect (1 );
116
116
DataSetsRow secondRowItem = tableView .getSelectionModel ().getSelectedItem ();
117
117
assertNotEquals (firstRowItem .hashCode (), secondRowItem .hashCode ());
118
118
assertFalse (firstRowItem .equals (secondRowItem ));
119
-
119
+
120
120
// Equals with other type is false
121
121
assertFalse (firstRowItem .equals (new Object ()));
122
122
}
123
-
123
+
124
124
private Button locateTableViewButton (final FlowPane toolbar ) {
125
125
return fxRobot .from (toolbar ) //
126
126
.lookup ("." + BUTTON_BAR_STYLE_CLASS + " > ." + BUTTON_SWITCH_TABLE_VIEW_STYLE_CLASS ) //
You can’t perform that action at this time.
0 commit comments