@@ -167,54 +167,28 @@ void testSuccessfulV2_3Validation() {
167167 }
168168
169169 @ Test
170- void testSuccessfulV3_0_RCValidation () {
170+ void testSuccessfulV3_0Validation () {
171171 GbfsJsonValidator validator = new GbfsJsonValidator ();
172172
173173 Map <String , InputStream > deliveryMap = new HashMap <>();
174- deliveryMap .put ("gbfs" , getFixture ("fixtures/v3.0-RC /gbfs.json" ));
175- deliveryMap .put ("gbfs_versions" , getFixture ("fixtures/v3.0-RC /gbfs_versions.json" ));
176- deliveryMap .put ("system_information" , getFixture ("fixtures/v3.0-RC /system_information.json" ));
177- deliveryMap .put ("vehicle_types" , getFixture ("fixtures/v3.0-RC /vehicle_types.json" ));
178- deliveryMap .put ("station_information" , getFixture ("fixtures/v3.0-RC /station_information.json" ));
179- deliveryMap .put ("station_status" , getFixture ("fixtures/v3.0-RC /station_status.json" ));
180- deliveryMap .put ("vehicle_status" , getFixture ("fixtures/v3.0-RC /vehicle_status.json" ));
181- deliveryMap .put ("manifest" , getFixture ("fixtures/v3.0-RC /manifest.json" ));
182- deliveryMap .put ("system_regions" , getFixture ("fixtures/v3.0-RC /system_regions.json" ));
183- deliveryMap .put ("system_pricing_plans" , getFixture ("fixtures/v3.0-RC /system_pricing_plans.json" ));
184- deliveryMap .put ("system_alerts" , getFixture ("fixtures/v3.0-RC /system_alerts.json" ));
185- deliveryMap .put ("geofencing_zones" , getFixture ("fixtures/v3.0-RC /geofencing_zones.json" ));
174+ deliveryMap .put ("gbfs" , getFixture ("fixtures/v3.0/gbfs.json" ));
175+ deliveryMap .put ("gbfs_versions" , getFixture ("fixtures/v3.0/gbfs_versions.json" ));
176+ deliveryMap .put ("system_information" , getFixture ("fixtures/v3.0/system_information.json" ));
177+ deliveryMap .put ("vehicle_types" , getFixture ("fixtures/v3.0/vehicle_types.json" ));
178+ deliveryMap .put ("station_information" , getFixture ("fixtures/v3.0/station_information.json" ));
179+ deliveryMap .put ("station_status" , getFixture ("fixtures/v3.0/station_status.json" ));
180+ deliveryMap .put ("vehicle_status" , getFixture ("fixtures/v3.0/vehicle_status.json" ));
181+ deliveryMap .put ("manifest" , getFixture ("fixtures/v3.0/manifest.json" ));
182+ deliveryMap .put ("system_regions" , getFixture ("fixtures/v3.0/system_regions.json" ));
183+ deliveryMap .put ("system_pricing_plans" , getFixture ("fixtures/v3.0/system_pricing_plans.json" ));
184+ deliveryMap .put ("system_alerts" , getFixture ("fixtures/v3.0/system_alerts.json" ));
185+ deliveryMap .put ("geofencing_zones" , getFixture ("fixtures/v3.0/geofencing_zones.json" ));
186186
187187 ValidationResult result = validator .validate (deliveryMap );
188188
189- printErrors ("3.0-RC " , result );
189+ printErrors ("3.0" , result );
190190
191- Assertions .assertEquals ("3.0-RC" , result .getSummary ().getVersion ());
192- Assertions .assertEquals (0 , result .getSummary ().getErrorsCount ());
193- }
194-
195- @ Test
196- void testSuccessfulV3_0_RC2Validation () {
197- GbfsJsonValidator validator = new GbfsJsonValidator ();
198-
199- Map <String , InputStream > deliveryMap = new HashMap <>();
200- deliveryMap .put ("gbfs" , getFixture ("fixtures/v3.0-RC2/gbfs.json" ));
201- deliveryMap .put ("gbfs_versions" , getFixture ("fixtures/v3.0-RC2/gbfs_versions.json" ));
202- deliveryMap .put ("system_information" , getFixture ("fixtures/v3.0-RC2/system_information.json" ));
203- deliveryMap .put ("vehicle_types" , getFixture ("fixtures/v3.0-RC2/vehicle_types.json" ));
204- deliveryMap .put ("station_information" , getFixture ("fixtures/v3.0-RC2/station_information.json" ));
205- deliveryMap .put ("station_status" , getFixture ("fixtures/v3.0-RC2/station_status.json" ));
206- deliveryMap .put ("vehicle_status" , getFixture ("fixtures/v3.0-RC2/vehicle_status.json" ));
207- deliveryMap .put ("manifest" , getFixture ("fixtures/v3.0-RC2/manifest.json" ));
208- deliveryMap .put ("system_regions" , getFixture ("fixtures/v3.0-RC2/system_regions.json" ));
209- deliveryMap .put ("system_pricing_plans" , getFixture ("fixtures/v3.0-RC2/system_pricing_plans.json" ));
210- deliveryMap .put ("system_alerts" , getFixture ("fixtures/v3.0-RC2/system_alerts.json" ));
211- deliveryMap .put ("geofencing_zones" , getFixture ("fixtures/v3.0-RC2/geofencing_zones.json" ));
212-
213- ValidationResult result = validator .validate (deliveryMap );
214-
215- printErrors ("3.0-RC2" , result );
216-
217- Assertions .assertEquals ("3.0-RC2" , result .getSummary ().getVersion ());
191+ Assertions .assertEquals ("3.0" , result .getSummary ().getVersion ());
218192 Assertions .assertEquals (0 , result .getSummary ().getErrorsCount ());
219193 }
220194
0 commit comments