diff options
author | adamw <adam@warski.org> | 2017-11-25 10:30:08 +0100 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-11-25 10:30:08 +0100 |
commit | 7611a82978da965d133d78dc8787b8edefee1661 (patch) | |
tree | a15ef7cd9ff6edc7e4d4e2c3b0051f9e74f23769 /core/src/test/scala | |
parent | 2a6d7a13c410e07d8ce58701f0fae816df3919e0 (diff) | |
download | sttp-7611a82978da965d133d78dc8787b8edefee1661.tar.gz sttp-7611a82978da965d133d78dc8787b8edefee1661.tar.bz2 sttp-7611a82978da965d133d78dc8787b8edefee1661.zip |
Adding tests for optional ports in uri interpolator
Diffstat (limited to 'core/src/test/scala')
-rw-r--r-- | core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala b/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala index acfa9d4..4f0c66f 100644 --- a/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala +++ b/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala @@ -59,7 +59,9 @@ class UriInterpolatorTests extends FunSuite with Matchers { "ports" -> List( (uri"http://example.com:8080", s"http://example.com:8080"), (uri"http://example.com:${8080}", s"http://example.com:8080"), - (uri"http://example.com:${8080}/x", s"http://example.com:8080/x") + (uri"http://example.com:${8080}/x", s"http://example.com:8080/x"), + (uri"http://example.com:${Some(8080)}/x", s"http://example.com:8080/x"), + (uri"http://example.com:$None/x", s"http://example.com/x") ), "path" -> List( (uri"http://example.com/$v1", s"http://example.com/$v1"), |