@@ -267,7 +267,7 @@ void testAddSpreadsheetConfigToCollection() throws Exception {
267
267
List <ColumnInfos > columnInfos = List .of (
268
268
new ColumnInfos (null , "new_col" , ColumnType .NUMBER , 1 , "formula" , "[\" dep\" ]" , "idNew" , null , null , null , null , true )
269
269
);
270
- SpreadsheetConfigInfos newConfig = new SpreadsheetConfigInfos (null , "NewSheet" , SheetType .BATTERY , columnInfos , null );
270
+ SpreadsheetConfigInfos newConfig = new SpreadsheetConfigInfos (null , "NewSheet" , SheetType .BATTERY , columnInfos , null , List . of () );
271
271
272
272
String newConfigJson = mapper .writeValueAsString (newConfig );
273
273
MvcResult mvcResult = mockMvc .perform (post (URI_SPREADSHEET_CONFIG_COLLECTION_BASE + "/" + collectionUuid + "/spreadsheet-configs" )
@@ -305,7 +305,7 @@ void testRemoveSpreadsheetConfigFromCollection() throws Exception {
305
305
@ Test
306
306
void testAddSpreadsheetConfigToNonExistentCollection () throws Exception {
307
307
UUID nonExistentUuid = UUID .randomUUID ();
308
- SpreadsheetConfigInfos newConfig = new SpreadsheetConfigInfos (null , "TestSheet" , SheetType .GENERATOR , List .of (), null );
308
+ SpreadsheetConfigInfos newConfig = new SpreadsheetConfigInfos (null , "TestSheet" , SheetType .GENERATOR , List .of (), null , List . of () );
309
309
310
310
String newConfigJson = mapper .writeValueAsString (newConfig );
311
311
mockMvc .perform (post (URI_SPREADSHEET_CONFIG_COLLECTION_BASE + "/" + nonExistentUuid + "/spreadsheet-configs" )
@@ -407,8 +407,8 @@ private List<SpreadsheetConfigInfos> createSpreadsheetConfigs() {
407
407
);
408
408
409
409
return List .of (
410
- new SpreadsheetConfigInfos (null , "TestSheet" , SheetType .GENERATOR , columnInfos , null ),
411
- new SpreadsheetConfigInfos (null , "TestSheet1" , SheetType .GENERATOR , columnInfos , null )
410
+ new SpreadsheetConfigInfos (null , "TestSheet" , SheetType .GENERATOR , columnInfos , null , List . of () ),
411
+ new SpreadsheetConfigInfos (null , "TestSheet1" , SheetType .GENERATOR , columnInfos , null , List . of () )
412
412
);
413
413
}
414
414
@@ -443,8 +443,8 @@ private List<SpreadsheetConfigInfos> createSpreadsheetConfigsWithFilters() {
443
443
);
444
444
445
445
return List .of (
446
- new SpreadsheetConfigInfos (null , "TestSheet" , SheetType .GENERATOR , columnsConfig1 , globalFiltersConfig1 ),
447
- new SpreadsheetConfigInfos (null , "TestSheet2" , SheetType .LOAD , columnsConfig2 , globalFiltersConfig2 )
446
+ new SpreadsheetConfigInfos (null , "TestSheet" , SheetType .GENERATOR , columnsConfig1 , globalFiltersConfig1 , List . of () ),
447
+ new SpreadsheetConfigInfos (null , "TestSheet2" , SheetType .LOAD , columnsConfig2 , globalFiltersConfig2 , List . of () )
448
448
);
449
449
}
450
450
@@ -457,9 +457,9 @@ private List<SpreadsheetConfigInfos> createUpdatedSpreadsheetConfigs() {
457
457
);
458
458
459
459
return List .of (
460
- new SpreadsheetConfigInfos (null , "Generator" , SheetType .GENERATOR , columnInfos , null ),
461
- new SpreadsheetConfigInfos (null , "TestSheet" , SheetType .GENERATOR , columnInfos , null ),
462
- new SpreadsheetConfigInfos (null , "TestSheet (1)" , SheetType .BATTERY , columnInfos , null )
460
+ new SpreadsheetConfigInfos (null , "Generator" , SheetType .GENERATOR , columnInfos , null , List . of () ),
461
+ new SpreadsheetConfigInfos (null , "TestSheet" , SheetType .GENERATOR , columnInfos , null , List . of () ),
462
+ new SpreadsheetConfigInfos (null , "TestSheet (1)" , SheetType .BATTERY , columnInfos , null , List . of () )
463
463
);
464
464
}
465
465
@@ -500,9 +500,9 @@ private List<SpreadsheetConfigInfos> createUpdatedSpreadsheetConfigsWithFilters(
500
500
);
501
501
502
502
return List .of (
503
- new SpreadsheetConfigInfos (null , "Updated1" , SheetType .BATTERY , columnsConfig1 , globalFiltersConfig1 ),
504
- new SpreadsheetConfigInfos (null , "Updated2" , SheetType .LINE , columnsConfig2 , globalFiltersConfig2 ),
505
- new SpreadsheetConfigInfos (null , "Added3" , SheetType .BUS , columnsConfig3 , globalFiltersConfig3 )
503
+ new SpreadsheetConfigInfos (null , "Updated1" , SheetType .BATTERY , columnsConfig1 , globalFiltersConfig1 , List . of () ),
504
+ new SpreadsheetConfigInfos (null , "Updated2" , SheetType .LINE , columnsConfig2 , globalFiltersConfig2 , List . of () ),
505
+ new SpreadsheetConfigInfos (null , "Added3" , SheetType .BUS , columnsConfig3 , globalFiltersConfig3 , List . of () )
506
506
);
507
507
}
508
508
0 commit comments