diff options
Diffstat (limited to 'src/Q10/StationTest.java')
| -rw-r--r-- | src/Q10/StationTest.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/Q10/StationTest.java b/src/Q10/StationTest.java new file mode 100644 index 0000000..a32191a --- /dev/null +++ b/src/Q10/StationTest.java @@ -0,0 +1,30 @@ +package ca.mokhan.test; + +import Q10.*; +import java.io.*; +import java.text.*; +import java.util.*; +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +public class StationTest extends TestCase { + private Station subject; + + public StationTest(String testName) { + super(testName); + this.subject = new Station("Edmonton", new Date(1546470000000L), new Date(1546473540000L), 2); + } + + public static Test suite() { + return new TestSuite(StationTest.class); + } + + public void test_getArrival() { + assertEquals("23:00", subject.getArrival()); + } + + public void test_getDeparture() { + assertEquals("23:59", subject.getDeparture()); + } +} |
