diff options
author | adamw <adam@warski.org> | 2017-11-30 20:59:22 +0100 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-11-30 20:59:22 +0100 |
commit | a70053c72809c2588716c371a4d4f2a7404106d6 (patch) | |
tree | 2003873773cf58d3efd18e23e2135fd2d58d71ac /core/src/test/scala/com | |
parent | 83e68849eb31913319d4e3f37e623fcc49c26d8a (diff) | |
download | sttp-a70053c72809c2588716c371a4d4f2a7404106d6.tar.gz sttp-a70053c72809c2588716c371a4d4f2a7404106d6.tar.bz2 sttp-a70053c72809c2588716c371a4d4f2a7404106d6.zip |
Update sbt
Diffstat (limited to 'core/src/test/scala/com')
-rw-r--r-- | core/src/test/scala/com/softwaremill/sttp/testing/SttpBackendStubTests.scala | 12 |
1 files changed, 4 insertions, 8 deletions
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 |