diff options
author | intracer <intracer@gmail.com> | 2018-01-09 23:12:34 +0200 |
---|---|---|
committer | intracer <intracer@gmail.com> | 2018-01-09 23:12:34 +0200 |
commit | da85f559573c9353185cb553290082c0bbdaf6d0 (patch) | |
tree | 7f53dae8999c1d66ba668b657f3f3ac4dc57201a /core/src/test/scala/com | |
parent | 200dc81942cf72974f8eb870e3b1a37ef375e4a1 (diff) | |
download | sttp-da85f559573c9353185cb553290082c0bbdaf6d0.tar.gz sttp-da85f559573c9353185cb553290082c0bbdaf6d0.tar.bz2 sttp-da85f559573c9353185cb553290082c0bbdaf6d0.zip |
add status message to Response #59
Diffstat (limited to 'core/src/test/scala/com')
-rw-r--r-- | core/src/test/scala/com/softwaremill/sttp/RequestTests.scala | 1 | ||||
-rw-r--r-- | core/src/test/scala/com/softwaremill/sttp/testing/SttpBackendStubTests.scala | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/core/src/test/scala/com/softwaremill/sttp/RequestTests.scala b/core/src/test/scala/com/softwaremill/sttp/RequestTests.scala index e62112a..5fc9d50 100644 --- a/core/src/test/scala/com/softwaremill/sttp/RequestTests.scala +++ b/core/src/test/scala/com/softwaremill/sttp/RequestTests.scala @@ -33,6 +33,7 @@ class RequestTests extends FlatSpec with Matchers { val response = Response(Right(()), 0, + "", List((SetCookieHeader, "k1=v1"), (SetCookieHeader, "k2=v2")), Nil) sttp 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 c9b94c0..f3d2cd4 100644 --- a/core/src/test/scala/com/softwaremill/sttp/testing/SttpBackendStubTests.scala +++ b/core/src/test/scala/com/softwaremill/sttp/testing/SttpBackendStubTests.scala @@ -20,11 +20,11 @@ class SttpBackendStubTests extends FlatSpec with Matchers with ScalaFutures { case r if r.method == Method.POST && r.uri.path.endsWith( List("partial10")) => - Response(Right(10), 200, Nil, Nil) + Response(Right(10), 200, "OK", Nil, Nil) case r if r.method == Method.POST && r.uri.path.endsWith( List("partialAda")) => - Response(Right("Ada"), 200, Nil, Nil) + Response(Right("Ada"), 200, "OK", Nil, Nil) }) "backend stub" should "use the first rule if it matches" in { |