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 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()) + } }