Skip to content

Commit

Permalink
Add unit test for DSJ ServiceAlteration
Browse files Browse the repository at this point in the history
  • Loading branch information
vpaturet committed Jan 12, 2024
1 parent 5fc6c2c commit 75d6569
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ void unmarshalTimetableFrame() throws JAXBException {
" </ServiceJourney>\n" +
" \n" +
" <DatedServiceJourney version=\"1\" id=\"VYG:DatedServiceJourney:96_KMB-NK_23-12-09\">\n" +
" <ServiceAlteration>cancellation</ServiceAlteration>" +
" <ServiceJourneyRef ref=\"VYG:ServiceJourney:96-KMB_87815-R\" version=\"11\"></ServiceJourneyRef>\n" +
" <DatedServiceJourneyRef ref=\"VYG:DatedServiceJourney:8916_KVG-DEG_23-10-19\" version=\"1\"></DatedServiceJourneyRef>\n" +
" <OperatingDayRef ref=\"VYG:OperatingDay:2023-12-09\"></OperatingDayRef>\n" +
Expand Down Expand Up @@ -128,6 +129,7 @@ void unmarshalTimetableFrame() throws JAXBException {
assertEquals("VYG:OperatingDay:2023-12-09", dsj.getOperatingDayRef().getRef());
assertEquals("VYG:ServiceJourney:96-KMB_87815-R", dsj.getJourneyRef().get(0).getValue().getRef());
assertEquals("VYG:DatedServiceJourney:8916_KVG-DEG_23-10-19", dsj.getJourneyRef().get(1).getValue().getRef());
assertEquals("cancellation", dsj.getServiceAlteration().value());



Expand Down

0 comments on commit 75d6569

Please sign in to comment.