From 327e0a512816eb94a14b1dfc8e24c46847473311 Mon Sep 17 00:00:00 2001 From: Travis Brown Date: Wed, 26 Jun 2019 16:00:33 -0500 Subject: [PATCH 1/2] Need to use Encoder in tests --- .../src/test/scala/io/circe/njt/NotJavaTimeTest.scala | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/not-java-time/src/test/scala/io/circe/njt/NotJavaTimeTest.scala b/not-java-time/src/test/scala/io/circe/njt/NotJavaTimeTest.scala index b437d41..e7da7bc 100644 --- a/not-java-time/src/test/scala/io/circe/njt/NotJavaTimeTest.scala +++ b/not-java-time/src/test/scala/io/circe/njt/NotJavaTimeTest.scala @@ -1,10 +1,14 @@ package io.circe.njt -import io.circe.{ Decoder, Json } +import io.circe.{ Decoder, Encoder, Json } import org.scalatest.FunSuite class NotJavaTimeTest extends FunSuite { - test("Using circe should not throw linking errors") { + test("Using Decoder should not throw linking errors") { assert(Decoder[List[String]].decodeJson(Json.arr()) === Right(Nil)) } + + test("Using Encoder should not throw linking errors") { + assert(Encoder[List[String]].apply(Nil) === Json.arr()) + } } From 4e54cde98fa68c67b5d1073faecf0bceff7a1a2d Mon Sep 17 00:00:00 2001 From: Travis Brown Date: Wed, 26 Jun 2019 16:04:22 -0500 Subject: [PATCH 2/2] Add TemporalAccessor --- not-java-time/src/main/scala/java/time/temporal/package.scala | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 not-java-time/src/main/scala/java/time/temporal/package.scala diff --git a/not-java-time/src/main/scala/java/time/temporal/package.scala b/not-java-time/src/main/scala/java/time/temporal/package.scala new file mode 100644 index 0000000..fb7ba9f --- /dev/null +++ b/not-java-time/src/main/scala/java/time/temporal/package.scala @@ -0,0 +1,3 @@ +package java.time.temporal + +trait TemporalAccessor