summaryrefslogtreecommitdiffstats
path: root/src/test/java/org/uic/barcode/ticketTestDB
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2021-11-29 17:09:46 +0100
committerCGantert345 <57003061+CGantert345@users.noreply.github.com>2021-11-29 17:09:46 +0100
commite10588931164ad78e236f072de870780ae6703c5 (patch)
tree0b7c8e4f0a8427a6eccdeb19882ce90ccbdd852c /src/test/java/org/uic/barcode/ticketTestDB
parenttest and bug fix on countermark and viaStation (diff)
downloadUIC-barcode-e10588931164ad78e236f072de870780ae6703c5.tar
UIC-barcode-e10588931164ad78e236f072de870780ae6703c5.tar.gz
UIC-barcode-e10588931164ad78e236f072de870780ae6703c5.tar.bz2
UIC-barcode-e10588931164ad78e236f072de870780ae6703c5.tar.lz
UIC-barcode-e10588931164ad78e236f072de870780ae6703c5.tar.xz
UIC-barcode-e10588931164ad78e236f072de870780ae6703c5.tar.zst
UIC-barcode-e10588931164ad78e236f072de870780ae6703c5.zip
Diffstat (limited to 'src/test/java/org/uic/barcode/ticketTestDB')
-rw-r--r--src/test/java/org/uic/barcode/ticketTestDB/DecodeSparpreisTicketDBTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/uic/barcode/ticketTestDB/DecodeSparpreisTicketDBTest.java b/src/test/java/org/uic/barcode/ticketTestDB/DecodeSparpreisTicketDBTest.java
index 1f1be30..326eb99 100644
--- a/src/test/java/org/uic/barcode/ticketTestDB/DecodeSparpreisTicketDBTest.java
+++ b/src/test/java/org/uic/barcode/ticketTestDB/DecodeSparpreisTicketDBTest.java
@@ -1,6 +1,7 @@
package org.uic.barcode.ticketTestDB;
+import java.util.Iterator;
import java.util.TimeZone;
import org.junit.After;
@@ -10,8 +11,10 @@ import org.junit.Test;
import org.uic.barcode.Decoder;
import org.uic.barcode.asn1.uper.UperEncoder;
import org.uic.barcode.staticFrame.ticketLayoutBarcode.TicketLayout;
+import org.uic.barcode.ticket.api.impl.SimpleTrainLink;
import org.uic.barcode.ticket.api.spec.IOpenTicket;
import org.uic.barcode.ticket.api.spec.IPassengerType;
+import org.uic.barcode.ticket.api.spec.IRegionalValidity;
import org.uic.barcode.ticket.api.spec.ITariff;
import org.uic.barcode.ticket.api.spec.ITrainLink;
import org.uic.barcode.ticket.api.spec.ITraveler;
@@ -89,6 +92,7 @@ public class DecodeSparpreisTicketDBTest {
assert(tariff.getPassengerType().equals(IPassengerType.adult));
assert(tariff.getTariffDescription().equals("Super Sparpreis"));
+
ITrainLink tl = (ITrainLink) openTicket.getValidRegionList().iterator().next();
Assert.assertNotNull(tl);
assert(tl.getTrain().equals("ICE973"));