Skip to content

Commit

Permalink
Remove unnecessary things
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Domin committed Jul 18, 2023
1 parent 8e0846c commit dea0475
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ trait SttpUpickleApi {
}
}
}

object SttpUpickleApi extends SttpUpickleApi
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ object Person {

class BackendStubUpickleTests extends AnyFlatSpec with Matchers with ScalaFutures {


it should "deserialize to json using a string stub" in {
val backend = SyncBackendStub.whenAnyRequest.thenRespond("""{"name": "John"}""")
val r = basicRequest.get(Uri("http://example.org")).response(asJson[Person]).send(backend)
Expand All @@ -31,7 +30,7 @@ class BackendStubUpickleTests extends AnyFlatSpec with Matchers with ScalaFuture
)

val backend = SyncBackendStub.whenAnyRequest.thenRespond(json)
val r = basicRequest.get(Uri("http://example.org")).body(json).response(asJson[Person]).send(backend)
val r = basicRequest.get(Uri("http://example.org")).body(json).send(backend)

r.is200 should be(true)
r.body should be(json)
Expand Down

0 comments on commit dea0475

Please sign in to comment.