Search in sources :

Example 21 with ObjectFactory

use of org.rutebanken.netex.model.ObjectFactory in project tiamat by entur.

the class PublicationDeliveryImporterTest method findSiteFrameFromCommonFrame.

@SuppressWarnings("unchecked")
@Test
public void findSiteFrameFromCommonFrame() {
    ObjectFactory objectFactory = new ObjectFactory();
    PublicationDeliveryStructure publicationDeliveryStructure = new PublicationDeliveryStructure().withDataObjects(new PublicationDeliveryStructure.DataObjects().withCompositeFrameOrCommonFrame(objectFactory.createCommonFrame(new SiteFrame())));
    SiteFrame siteFrame = publicationDeliveryHelper.findSiteFrame(publicationDeliveryStructure);
    assertThat(siteFrame).isNotNull();
}
Also used : SiteFrame(org.rutebanken.netex.model.SiteFrame) ObjectFactory(org.rutebanken.netex.model.ObjectFactory) PublicationDeliveryStructure(org.rutebanken.netex.model.PublicationDeliveryStructure) Test(org.junit.Test) TiamatIntegrationTest(org.rutebanken.tiamat.TiamatIntegrationTest)

Aggregations

ObjectFactory (org.rutebanken.netex.model.ObjectFactory)21 PublicationDeliveryStructure (org.rutebanken.netex.model.PublicationDeliveryStructure)14 SiteFrame (org.rutebanken.netex.model.SiteFrame)13 Test (org.junit.Test)12 TariffZonesInFrame_RelStructure (org.rutebanken.netex.model.TariffZonesInFrame_RelStructure)12 TiamatIntegrationTest (org.rutebanken.tiamat.TiamatIntegrationTest)12 JAXBElement (javax.xml.bind.JAXBElement)11 Zone_VersionStructure (org.rutebanken.netex.model.Zone_VersionStructure)10 ArrayList (java.util.ArrayList)9 StopPlace (org.rutebanken.netex.model.StopPlace)9 TariffZoneRef (org.rutebanken.netex.model.TariffZoneRef)9 TariffZoneRefs_RelStructure (org.rutebanken.netex.model.TariffZoneRefs_RelStructure)9 MultilingualString (org.rutebanken.netex.model.MultilingualString)8 ImportParams (org.rutebanken.tiamat.importer.ImportParams)7 FareZone (org.rutebanken.netex.model.FareZone)6 StopPlacesInFrame_RelStructure (org.rutebanken.netex.model.StopPlacesInFrame_RelStructure)6 TariffZone (org.rutebanken.netex.model.TariffZone)6 ValidBetween (org.rutebanken.netex.model.ValidBetween)5 BigDecimal (java.math.BigDecimal)4 LocalDateTime (java.time.LocalDateTime)4