Skip to content

Commit

Permalink
add implicit for scala 3
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelEdkrantz committed May 18, 2024
1 parent 7f0713e commit 43756f4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@ package sttp.client4

import org.scalatest.EitherValues
import spray.json.DefaultJsonProtocol._
import spray.json.DefaultJsonProtocol.RootJsObjectFormat
import spray.json.JsonParser.ParsingException
import spray.json.{DeserializationException => _, _}
import sttp.client4.SprayJsonTests._
import sttp.client4.internal.Utf8
import sttp.client4.sprayJson._
import sttp.client4.sprayJson.{sprayBodySerializer, _}
import sttp.model._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers

class SprayJsonTests extends AnyFlatSpec with Matchers with EitherValues {
behavior of "The spray-json module"

implicit private val jsObjectSerializer: BodySerializer[JsObject] = sprayBodySerializer(RootJsObjectFormat)

it should "encode arbitrary json bodies" in {
val body = Outer(Inner(42, true, "horses"), "cats")

Expand Down

0 comments on commit 43756f4

Please sign in to comment.