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();
}
Aggregations