aboutsummaryrefslogtreecommitdiff
path: root/tests/src/test/scala/com/softwaremill/sttp/IllTypedTests.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/test/scala/com/softwaremill/sttp/IllTypedTests.scala')
-rw-r--r--tests/src/test/scala/com/softwaremill/sttp/IllTypedTests.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/src/test/scala/com/softwaremill/sttp/IllTypedTests.scala b/tests/src/test/scala/com/softwaremill/sttp/IllTypedTests.scala
index caf6632..0d0c012 100644
--- a/tests/src/test/scala/com/softwaremill/sttp/IllTypedTests.scala
+++ b/tests/src/test/scala/com/softwaremill/sttp/IllTypedTests.scala
@@ -8,16 +8,16 @@ class IllTypedTests extends FlatSpec with Matchers {
import akka.stream.scaladsl.Source
import akka.util.ByteString
import java.net.URI
- implicit val sttpHandler = HttpConnectionSttpHandler
- sttp.get(new URI("http://example.com")).send(responseAsStream[Source[ByteString, Any]])
+ implicit val sttpHandler = HttpURLConnectionSttpHandler
+ sttp.get(new URI("http://example.com")).response(asStream[Source[ByteString, Any]]).send()
""" shouldNot typeCheck
}
"compilation" should "fail when trying to send a request without giving an URL" in {
"""
import java.net.URI
- implicit val sttpHandler = HttpConnectionSttpHandler
- sttp.send(responseAsString)
+ implicit val sttpHandler = HttpURLConnectionSttpHandler
+ sttp.send()
""" shouldNot typeCheck
}
}