@@ -60,7 +60,7 @@ public void tearDown() {
60
60
61
61
@ Test
62
62
void testCreate () throws Exception {
63
- SpreadsheetConfigInfos configToCreate = new SpreadsheetConfigInfos (null , SheetType .BATTERIES , createCustomColumns ());
63
+ SpreadsheetConfigInfos configToCreate = new SpreadsheetConfigInfos (null , SheetType .BATTERY , createCustomColumns ());
64
64
65
65
UUID configUuid = postSpreadsheetConfig (configToCreate );
66
66
SpreadsheetConfigInfos createdConfig = getSpreadsheetConfig (configUuid );
@@ -86,7 +86,7 @@ void testCreateWithInvalidData() throws Exception {
86
86
87
87
@ Test
88
88
void testRead () throws Exception {
89
- SpreadsheetConfigInfos configToRead = new SpreadsheetConfigInfos (null , SheetType .BUSES , createCustomColumns ());
89
+ SpreadsheetConfigInfos configToRead = new SpreadsheetConfigInfos (null , SheetType .BUS , createCustomColumns ());
90
90
91
91
UUID configUuid = saveAndReturnId (configToRead );
92
92
@@ -101,15 +101,15 @@ void testRead() throws Exception {
101
101
102
102
@ Test
103
103
void testGetMetadata () throws Exception {
104
- SpreadsheetConfigInfos configToRead = new SpreadsheetConfigInfos (null , SheetType .BUSES , createCustomColumns ());
104
+ SpreadsheetConfigInfos configToRead = new SpreadsheetConfigInfos (null , SheetType .BUS , createCustomColumns ());
105
105
106
106
UUID configUuid = saveAndReturnId (configToRead );
107
107
108
108
List <MetadataInfos > metadata = getMetadataInfos (configUuid );
109
109
110
110
assertThat (metadata ).hasSize (1 );
111
111
assertThat (metadata .get (0 ).id ()).isEqualTo (configUuid );
112
- assertThat (metadata .get (0 ).sheetType ()).isEqualTo (SheetType .BUSES );
112
+ assertThat (metadata .get (0 ).sheetType ()).isEqualTo (SheetType .BUS );
113
113
114
114
}
115
115
@@ -121,7 +121,7 @@ private List<MetadataInfos> getMetadataInfos(UUID configUuid) throws Exception {
121
121
122
122
return mapper .readValue (
123
123
receivedMetadata .getResponse ().getContentAsString (),
124
- new TypeReference <List < MetadataInfos > >() { });
124
+ new TypeReference <>() { });
125
125
}
126
126
127
127
@ Test
@@ -134,7 +134,7 @@ void testReadNonExistent() throws Exception {
134
134
135
135
@ Test
136
136
void testUpdateWithInvalidData () throws Exception {
137
- SpreadsheetConfigInfos configToUpdate = new SpreadsheetConfigInfos (null , SheetType .BATTERIES , createCustomColumns ());
137
+ SpreadsheetConfigInfos configToUpdate = new SpreadsheetConfigInfos (null , SheetType .BATTERY , createCustomColumns ());
138
138
139
139
UUID configUuid = saveAndReturnId (configToUpdate );
140
140
@@ -150,11 +150,11 @@ void testUpdateWithInvalidData() throws Exception {
150
150
151
151
@ Test
152
152
void testUpdate () throws Exception {
153
- SpreadsheetConfigInfos configToUpdate = new SpreadsheetConfigInfos (null , SheetType .BATTERIES , createCustomColumns ());
153
+ SpreadsheetConfigInfos configToUpdate = new SpreadsheetConfigInfos (null , SheetType .BATTERY , createCustomColumns ());
154
154
155
155
UUID configUuid = saveAndReturnId (configToUpdate );
156
156
157
- SpreadsheetConfigInfos updatedConfig = new SpreadsheetConfigInfos (configUuid , SheetType .BUSES , createUpdatedCustomColumns ());
157
+ SpreadsheetConfigInfos updatedConfig = new SpreadsheetConfigInfos (configUuid , SheetType .BUS , createUpdatedCustomColumns ());
158
158
159
159
String updatedConfigJson = mapper .writeValueAsString (updatedConfig );
160
160
@@ -173,7 +173,7 @@ void testUpdate() throws Exception {
173
173
174
174
@ Test
175
175
void testDelete () throws Exception {
176
- SpreadsheetConfigInfos configToDelete = new SpreadsheetConfigInfos (null , SheetType .BATTERIES , createCustomColumns ());
176
+ SpreadsheetConfigInfos configToDelete = new SpreadsheetConfigInfos (null , SheetType .BATTERY , createCustomColumns ());
177
177
178
178
UUID configUuid = saveAndReturnId (configToDelete );
179
179
@@ -195,8 +195,8 @@ void testDeleteNonExistent() throws Exception {
195
195
196
196
@ Test
197
197
void testGetAll () throws Exception {
198
- SpreadsheetConfigInfos config1 = new SpreadsheetConfigInfos (null , SheetType .BATTERIES , createCustomColumns ());
199
- SpreadsheetConfigInfos config2 = new SpreadsheetConfigInfos (null , SheetType .BUSES , createUpdatedCustomColumns ());
198
+ SpreadsheetConfigInfos config1 = new SpreadsheetConfigInfos (null , SheetType .BATTERY , createCustomColumns ());
199
+ SpreadsheetConfigInfos config2 = new SpreadsheetConfigInfos (null , SheetType .BUS , createUpdatedCustomColumns ());
200
200
201
201
saveAndReturnId (config1 );
202
202
saveAndReturnId (config2 );
@@ -208,7 +208,7 @@ void testGetAll() throws Exception {
208
208
209
209
@ Test
210
210
void testDuplicate () throws Exception {
211
- SpreadsheetConfigInfos configToCreate = new SpreadsheetConfigInfos (null , SheetType .BATTERIES , createCustomColumns ());
211
+ SpreadsheetConfigInfos configToCreate = new SpreadsheetConfigInfos (null , SheetType .BATTERY , createCustomColumns ());
212
212
UUID configUuid = postSpreadsheetConfig (configToCreate );
213
213
214
214
UUID duplicatedConfigUuid = duplicateSpreadsheetConfig (configUuid );
@@ -285,7 +285,7 @@ private List<SpreadsheetConfigInfos> getAllSpreadsheetConfigs() throws Exception
285
285
286
286
return mapper .readValue (
287
287
mvcResult .getResponse ().getContentAsString (),
288
- new TypeReference <List < SpreadsheetConfigInfos > >() { });
288
+ new TypeReference <>() { });
289
289
}
290
290
291
291
private UUID saveAndReturnId (SpreadsheetConfigInfos config ) {
0 commit comments