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 {
547547 // Initial config should have filters set
548548 SpreadsheetConfigInfos initialConfig = getSpreadsheetConfig (configId );
549549 assertThat (initialConfig .globalFilters ()).hasSize (2 );
550- assertThat (initialConfig .columns ().get ( 0 )).hasFieldOrPropertyWithValue ("filterValue" , "test-value" );
550+ assertThat (initialConfig .columns ().getFirst ( )).hasFieldOrPropertyWithValue ("filterValue" , "test-value" );
551551
552552 // Call the endpoint to reset the filters
553553 mockMvc .perform (delete (URI_SPREADSHEET_CONFIG_GET_PUT + configId + URI_COLUMN_BASE + "/filters" )
@@ -556,8 +556,8 @@ void testResetFiltersForSpreadsheetConfig() throws Exception {
556556
557557 // Verify the filters (global or column based) were reset
558558 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 );
561561 }
562562
563563 @ Test
You can’t perform that action at this time.
0 commit comments