Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsute committed Jan 10, 2023
1 parent 3b500d4 commit a2b392a
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 2 deletions.
99 changes: 99 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,104 @@
# Changelog

## 2.0.0

### ⚠️ Breaking Change

* Use GTFS bus feed [#111](https://github.com/KatsuteDev/OneMTA/pull/111) ([@Katsute](https://github.com/Katsute))
<h3 align="center">🛑 This major update includes breaking changes 🛑</h3>

This update drops the SIRI bus API in favor of the GTFS bus API. This update is most likely **not compatible** with previous versions of the bus API; all other modes should still be compatible with this update.

* Removed `Json` and `JsonSyntaxException`
* Removed `RailroadStop`
* Removed `RailroadTripStop`
* Replaced merged GTFS types into transit types
* Optimizations to request headers
* Optimizations to token usage
* Optimizations to vehicle feeds
* Optimizations to vehicle requests
* Optimizations to alert requests

#### Attributes

Inlined several attributes and removed respective interfaces:

* Removed `Bearing`
* Condensed `RouteReference`, `StopReference`, `TripReference`, and `VehiclesReference` into a single `Reference` class
* Removed `RouteDescription`
* Removed `RouteShortName`

#### Alerts

* Added created time
* Added updated time
* Removed alert effect
* Added alert type

#### Bus

Dropped SIRI API in favor of GTFS API.

##### Stop

* Removed origin stop
* Removed destination
* Removed progress rate
* Removed progress status
* Removed aimed arrival time
* Removed expected departure time

##### Vehicle

* Added passenger count
* Removed arrival proximity
* Removed stop distance

##### Trip

* Added stop sequence
* Added delay

#### Subway

##### Vehicle

* Added assigned indicator
* Added rerouted indicator
* Added skip stop indicator
* Added turn train indicator
* Added stop sequence

#### Long Island Railroad (LIRR)

##### Trip

* Added trip stop sequence
* Added trip stop schedule relationship

#### Metro North Railroad (MNR)

##### Vehicle

* Added status

### 📘 Dependencies

* Bump protobuf-java from 3.21.7 to 3.21.8 [#98](https://github.com/KatsuteDev/OneMTA/pull/98) ([@dependabot](https://github.com/dependabot))
* Bump protobuf-java-util from 3.21.7 to 3.21.8 [#99](https://github.com/KatsuteDev/OneMTA/pull/99) ([@dependabot](https://github.com/dependabot))
* Bump protobuf-java from 3.21.8 to 3.21.9 [#102](https://github.com/KatsuteDev/OneMTA/pull/102) ([@dependabot](https://github.com/dependabot))
* Bump protobuf-java-util from 3.21.8 to 3.21.9 [#103](https://github.com/KatsuteDev/OneMTA/pull/103) ([@dependabot](https://github.com/dependabot))
* Bump protobuf-java from 3.21.9 to 3.21.10 [#104](https://github.com/KatsuteDev/OneMTA/pull/104) ([@dependabot](https://github.com/dependabot))
* Bump protobuf-java-util from 3.21.9 to 3.21.10 [#105](https://github.com/KatsuteDev/OneMTA/pull/105) ([@dependabot](https://github.com/dependabot))
* Bump protobuf-java from 3.21.10 to 3.21.11 [#107](https://github.com/KatsuteDev/OneMTA/pull/107) ([@dependabot](https://github.com/dependabot))
* Bump protobuf-java-util from 3.21.10 to 3.21.11 [#106](https://github.com/KatsuteDev/OneMTA/pull/106) ([@dependabot](https://github.com/dependabot))
* Bump protobuf-java-util from 3.21.11 to 3.21.12 [#109](https://github.com/KatsuteDev/OneMTA/pull/109) ([@dependabot](https://github.com/dependabot))
* Bump protobuf-java from 3.21.11 to 3.21.12 [#108](https://github.com/KatsuteDev/OneMTA/pull/108) ([@dependabot](https://github.com/dependabot))
* Bump junit-jupiter-api from 5.9.1 to 5.9.2 [#113](https://github.com/KatsuteDev/OneMTA/pull/113) ([@dependabot](https://github.com/dependabot))
* Bump junit-jupiter-params from 5.9.1 to 5.9.2 [#112](https://github.com/KatsuteDev/OneMTA/pull/112) ([@dependabot](https://github.com/dependabot))

**Full Changelog**: [`1.2.3...2.0.0`](https://github.com/KatsuteDev/OneMTA/compare/1.2.3...2.0.0)

## 1.2.3

### 🐞 Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>dev.katsute</groupId>
<artifactId>onemta</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>

<profiles>
<profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static void testVehicle(final Subway.Vehicle vehicle){
assertNotNull(vehicle.getStatus());
assertNotNull(vehicle.getStopSequence());
assertNotNull(vehicle.isExpress());
assertEquals(vehicle.getVehicleID().toUpperCase().endsWith("X"), vehicle.isExpress());
assertEquals(vehicle.getRouteID().toUpperCase().endsWith("X"), vehicle.isExpress());
}

static void testTrip(final Subway.Trip trip){
Expand Down

0 comments on commit a2b392a

Please sign in to comment.