File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/test/java/org/gridsuite/studyconfig/server Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ void testResetFiltersForSpreadsheetConfig() throws Exception {
547
547
// Initial config should have filters set
548
548
SpreadsheetConfigInfos initialConfig = getSpreadsheetConfig (configId );
549
549
assertThat (initialConfig .globalFilters ()).hasSize (2 );
550
- assertThat (initialConfig .columns ().get ( 0 )).hasFieldOrPropertyWithValue ("filterValue" , "test-value" );
550
+ assertThat (initialConfig .columns ().getFirst ( )).hasFieldOrPropertyWithValue ("filterValue" , "test-value" );
551
551
552
552
// Call the endpoint to reset the filters
553
553
mockMvc .perform (delete (URI_SPREADSHEET_CONFIG_GET_PUT + configId + URI_COLUMN_BASE + "/filters" )
@@ -556,8 +556,8 @@ void testResetFiltersForSpreadsheetConfig() throws Exception {
556
556
557
557
// Verify the filters (global or column based) were reset
558
558
SpreadsheetConfigInfos updatedConfig = getSpreadsheetConfig (configId );
559
- assertThat (updatedConfig .globalFilters ()).hasSize ( 0 );
560
- assertThat (updatedConfig .columns ().get ( 0 )).hasFieldOrPropertyWithValue ("filterValue" , null );
559
+ assertThat (updatedConfig .globalFilters ()).isEmpty ( );
560
+ assertThat (updatedConfig .columns ().getFirst ( )).hasFieldOrPropertyWithValue ("filterValue" , null );
561
561
}
562
562
563
563
@ Test
You can’t perform that action at this time.
0 commit comments