Skip to content

Commit 09b23a0

Browse files
author
Hugo Marcellin
committed
Sonar issues
1 parent 94ccf8e commit 09b23a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/gridsuite/studyconfig/server/SpreadsheetConfigIntegrationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)