diff options
author | adamw <adam@warski.org> | 2017-08-01 14:51:23 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-08-01 14:51:23 +0200 |
commit | fe7e546f232b1ecdbf74d2933386a595c6bdc0a8 (patch) | |
tree | e2c0b8df8f71d8353bd09a1b30bf8006d2ad59f5 /core/src/test/scala | |
parent | 1b4a5132c331965b09384ce0a99c495091e34f48 (diff) | |
download | sttp-fe7e546f232b1ecdbf74d2933386a595c6bdc0a8.tar.gz sttp-fe7e546f232b1ecdbf74d2933386a595c6bdc0a8.tar.bz2 sttp-fe7e546f232b1ecdbf74d2933386a595c6bdc0a8.zip |
Initial version of the new uri interpolator
Diffstat (limited to 'core/src/test/scala')
-rw-r--r-- | core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala b/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala index 9f0f081..4424d70 100644 --- a/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala +++ b/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala @@ -11,6 +11,8 @@ class UriInterpolatorTests extends FunSuite with Matchers { val v3encoded = "a%3F%3D%26c" val v4 = "f/g" val v4encoded = "f%2Fg" + val v5 = "a:b" + val v5encoded = "a%3Ab" val secure = true val testData: List[(String, List[(Uri, String)])] = List( @@ -30,6 +32,12 @@ class UriInterpolatorTests extends FunSuite with Matchers { s"https://example.com"), (uri"example.com?a=$v2", s"http://example.com?a=$v2queryEncoded") ), + "user info" -> List( + (uri"http://user:pass@example.com", s"http://user:pass@example.com"), + (uri"http://$v2@example.com", s"http://$v2encoded@example.com"), + (uri"http://$v5@example.com", s"http://$v5encoded@example.com"), + (uri"http://$v1:$v2@example.com", s"http://$v1:$v2encoded@example.com") + ), "authority" -> List( (uri"http://$v1.com", s"http://$v1.com"), (uri"http://$v2.com", s"http://$v2encoded.com"), |