=htp #18661 effectiveUri in Java testkit

Java testkit now uses effectiveUri to behave just like the Scala testkit so that
the host header and path is joined. This allows for test calls that use just a relative
URI.
This commit is contained in:
Johan Andrén 2015-10-20 13:57:43 +02:00
parent 630bd948d5
commit 19c8e557ba
6 changed files with 49 additions and 22 deletions

View file

@ -32,7 +32,7 @@ public class HeaderRequestValsExampleTest extends JUnitRouteTest {
final HttpRequest request =
HttpRequest
.GET("http://akka.io/")
.addHeader(Host.create("akka.io", 80));
.addHeader(Host.create("akka.io"));
testRoute(route).run(request).assertEntity("Host header was: akka.io");
//#by-class