Skip to content

Add regression tests#278

Merged
vpaturet merged 3 commits intomasterfrom
add-regression-tests
Mar 6, 2026
Merged

Add regression tests#278
vpaturet merged 3 commits intomasterfrom
add-regression-tests

Conversation

@vpaturet
Copy link
Contributor

@vpaturet vpaturet commented Mar 6, 2026

No description provided.

vpaturet added 3 commits March 6, 2026 10:32
Add tests exercising API patterns that OTP depends on, covering types
not previously tested: Network, DestinationDisplay, ScheduledStopPoint,
ServiceLink, FlexibleLine, GroupOfLines, Notice, NoticeAssignment,
AccessibilityAssessment, FlexibleStopPlace, Parking,
ServiceJourneyInterchange, FlexibleServiceProperties (booking),
Branding, and Authority/Operator contact details.

These tests use MultilingualString.getValue(), AllVehicleModesOfTransport
Enumeration, collection accessors like getLine_() and getOrganisation_(),
and ObjectFactory builder methods that will break in NeTEx 2.0, ensuring
we can verify all use cases are properly migrated.
Add tests exercising API patterns that Chouette depends on, covering
types not previously tested:

- BookingArrangementsStructure on StopPointInJourneyPattern: bookingNote
  .getValue(), bookingAccess, bookWhen, buyWhen (@xmllist), bookingMethods,
  latestBookingTime, minimumBookingPeriod, bookingContact
- DeadRun: getName().getValue(), getDayTypes(), getJourneyPatternRef(),
  getPassingTimes()
- Block in VehicleScheduleFrame: getName/Description/PrivateCode .getValue(),
  startTime, endTime, startPointRef, endPointRef, dayTypes, journeys with
  DeadRunRefStructure and VehicleJourneyRefStructure instanceof checks
- PointProjection on RoutePoint: getProjections(), getProjectToPointRef()
- LinkSequenceProjection on ServiceLink: getProjections(), getLineString()
- AlternativeText on Notice: getText().getValue(), getText().getLang()
- DestinationDisplay Vias: getVias().getVia(), getDestinationDisplayRef()
- Direction: getDirectionType() (DirectionTypeEnumeration)
- Route: getDirectionType(), getDirectionRef(), getInverseRouteRef()
- PresentationStructure: getColour(), getTextColour()
- PrivateCodeStructure: getPrivateCode().getValue()
- Codespace: getXmlns(), getXmlnsUrl()
- FlexibleServiceProperties extended: getFlexibleServiceType(),
  isCancellationPossible(), isChangeOfTimePossible(), getBuyWhen(),
  getBookingNote().getValue()
- TimingPointStatusEnumeration on ScheduledStopPoint
- StopPlace: getDescription().getValue(), getLandmark().getValue()
- Block round-trip in MarshalUnmarshalTest
…2.0 upgrade

Add tests exercising API patterns that netex-validator-java depends on,
covering transport submode handling not previously tested:

- StopPlace with submode enums: getBusSubmode(), getRailSubmode(),
  getWaterSubmode(), getTramSubmode(), getMetroSubmode(), getCoachSubmode(),
  getFunicularSubmode(), getTelecabinSubmode(), getAirSubmode() and their
  .value() calls
- ServiceJourney with TransportSubmodeStructure: getTransportSubmode()
  returning TransportSubmodeStructure, then accessing specific submode
  enum via getBusSubmode(), getRailSubmode(), getWaterSubmode()
- Route.getLineRef().getValue().getRef() - JAXBElement-wrapped LineRef
- AllVehicleModesOfTransportEnumeration values: COACH, FUNICULAR,
  CABLEWAY, AIR (in addition to previously tested BUS, RAIL, WATER)
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 6, 2026

@vpaturet vpaturet merged commit 811f86e into master Mar 6, 2026
4 checks passed
@vpaturet vpaturet deleted the add-regression-tests branch March 6, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant