diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2021-11-29 17:10:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 17:10:55 +0100 |
commit | d7fbd40aad2080adf7033e8f668e5218ab12bace (patch) | |
tree | 0b7c8e4f0a8427a6eccdeb19882ce90ccbdd852c /src/test/java/org/uic/barcode/ticketTestDB/DecodeSparpreisTicketDBTest.java | |
parent | Merge pull request #35 from UnionInternationalCheminsdeFer/1.2.8 (diff) | |
parent | additional tests (diff) | |
download | UIC-barcode-d7fbd40aad2080adf7033e8f668e5218ab12bace.tar UIC-barcode-d7fbd40aad2080adf7033e8f668e5218ab12bace.tar.gz UIC-barcode-d7fbd40aad2080adf7033e8f668e5218ab12bace.tar.bz2 UIC-barcode-d7fbd40aad2080adf7033e8f668e5218ab12bace.tar.lz UIC-barcode-d7fbd40aad2080adf7033e8f668e5218ab12bace.tar.xz UIC-barcode-d7fbd40aad2080adf7033e8f668e5218ab12bace.tar.zst UIC-barcode-d7fbd40aad2080adf7033e8f668e5218ab12bace.zip |
Diffstat (limited to '')
-rw-r--r-- | src/test/java/org/uic/barcode/ticketTestDB/DecodeSparpreisTicketDBTest.java | 4 |
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")); |