From a70053c72809c2588716c371a4d4f2a7404106d6 Mon Sep 17 00:00:00 2001 From: adamw Date: Thu, 30 Nov 2017 20:59:22 +0100 Subject: Update sbt --- .../com/softwaremill/sttp/testing/SttpBackendStubTests.scala | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'core') diff --git a/core/src/test/scala/com/softwaremill/sttp/testing/SttpBackendStubTests.scala b/core/src/test/scala/com/softwaremill/sttp/testing/SttpBackendStubTests.scala index 1cab218..c9b94c0 100644 --- a/core/src/test/scala/com/softwaremill/sttp/testing/SttpBackendStubTests.scala +++ b/core/src/test/scala/com/softwaremill/sttp/testing/SttpBackendStubTests.scala @@ -108,8 +108,7 @@ class SttpBackendStubTests extends FlatSpec with Matchers with ScalaFutures { } it should "handle a 201 as a success" in { - implicit val s = SttpBackendStub(HttpURLConnectionBackend()) - .whenAnyRequest + implicit val s = SttpBackendStub(HttpURLConnectionBackend()).whenAnyRequest .thenRespondWithCode(201) val result = sttp @@ -121,8 +120,7 @@ class SttpBackendStubTests extends FlatSpec with Matchers with ScalaFutures { } it should "handle a 300 as a failure" in { - implicit val s = SttpBackendStub(HttpURLConnectionBackend()) - .whenAnyRequest + implicit val s = SttpBackendStub(HttpURLConnectionBackend()).whenAnyRequest .thenRespondWithCode(300) val result = sttp @@ -134,8 +132,7 @@ class SttpBackendStubTests extends FlatSpec with Matchers with ScalaFutures { } it should "handle a 400 as a failure" in { - implicit val s = SttpBackendStub(HttpURLConnectionBackend()) - .whenAnyRequest + implicit val s = SttpBackendStub(HttpURLConnectionBackend()).whenAnyRequest .thenRespondWithCode(400) val result = sttp @@ -147,8 +144,7 @@ class SttpBackendStubTests extends FlatSpec with Matchers with ScalaFutures { } it should "handle a 500 as a failure" in { - implicit val s = SttpBackendStub(HttpURLConnectionBackend()) - .whenAnyRequest + implicit val s = SttpBackendStub(HttpURLConnectionBackend()).whenAnyRequest .thenRespondWithCode(500) val result = sttp -- cgit v1.2.3