aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradamw <adam@warski.org>2017-11-30 20:59:22 +0100
committeradamw <adam@warski.org>2017-11-30 20:59:22 +0100
commita70053c72809c2588716c371a4d4f2a7404106d6 (patch)
tree2003873773cf58d3efd18e23e2135fd2d58d71ac
parent83e68849eb31913319d4e3f37e623fcc49c26d8a (diff)
downloadsttp-a70053c72809c2588716c371a4d4f2a7404106d6.tar.gz
sttp-a70053c72809c2588716c371a4d4f2a7404106d6.tar.bz2
sttp-a70053c72809c2588716c371a4d4f2a7404106d6.zip
Update sbt
-rw-r--r--core/src/test/scala/com/softwaremill/sttp/testing/SttpBackendStubTests.scala12
-rw-r--r--project/build.properties2
2 files changed, 5 insertions, 9 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
diff --git a/project/build.properties b/project/build.properties
index ee9d7cd..a31be40 100644
--- a/project/build.properties
+++ b/project/build.properties
@@ -1 +1 @@
-sbt.version=1.0.3 \ No newline at end of file
+sbt.version=1.0.4 \ No newline at end of file