diff options
| author | mo khan <mo@mokhan.ca> | 2019-08-05 17:25:41 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2019-08-05 17:25:41 -0600 |
| commit | f59d4c758d8edb2b538e77e342365d256d85d55c (patch) | |
| tree | a3445606bb3db9268bfb5b6a324abbcff390abbc /src/Q10/StationTest.java | |
| parent | 5e03237a3dfdc4a301f7cebc371456d8b3b4e866 (diff) | |
format dates in UTC
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()); + } +} |
