aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/com/drivergrp/core/TimeTest.scala
diff options
context:
space:
mode:
authorvlad <vlad@drivergrp.com>2016-07-28 13:54:06 -0700
committervlad <vlad@drivergrp.com>2016-07-28 13:54:06 -0700
commit0b3910c99854717282150bd4462c745b4008c7ae (patch)
tree798b42ea693ff2947bc5ea454d4c99c0dc8092f7 /src/test/scala/com/drivergrp/core/TimeTest.scala
parentc6b4c8a713f573dc0bcf729d1b1d2803dad4b98b (diff)
downloaddriver-core-0b3910c99854717282150bd4462c745b4008c7ae.tar.gz
driver-core-0b3910c99854717282150bd4462c745b4008c7ae.tar.bz2
driver-core-0b3910c99854717282150bd4462c745b4008c7ae.zip
Removed monadic directives + Fixed timezones for textual time + Explicit Swagger host provision
Diffstat (limited to 'src/test/scala/com/drivergrp/core/TimeTest.scala')
-rw-r--r--src/test/scala/com/drivergrp/core/TimeTest.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/scala/com/drivergrp/core/TimeTest.scala b/src/test/scala/com/drivergrp/core/TimeTest.scala
index ad390c8..e6cca45 100644
--- a/src/test/scala/com/drivergrp/core/TimeTest.scala
+++ b/src/test/scala/com/drivergrp/core/TimeTest.scala
@@ -1,5 +1,7 @@
package com.drivergrp.core
+import java.util.TimeZone
+
import com.drivergrp.core.time.{Time, _}
import org.scalatest.{FlatSpec, Matchers}
@@ -44,8 +46,8 @@ class TimeTest extends FlatSpec with Matchers {
it should "have correct textual representations" in {
- textualDate(Time(1468937089834L)) should be("July 19, 2016")
- textualTime(Time(1468937089834L)) should be("Jul 19, 2016 10:04:49 AM")
+ textualDate(TimeZone.getTimeZone("EDT"))(Time(1468937089834L)) should be("July 19, 2016")
+ textualTime(TimeZone.getTimeZone("PDT"))(Time(1468937089834L)) should be("Jul 19, 2016 02:04:49 PM")
}
"TimeRange" should "have duration defined as a difference of start and end times" in {