Hi, Try with tester.executeUrl(Url.parse("http://foo.localhost:8080"))
Martin Grigorov Wicket Training and Consulting On Wed, Mar 12, 2014 at 12:44 PM, Simon B <simon.bott...@gmail.com> wrote: > Hi, > Following on from my previous question: > > > http://apache-wicket.1842946.n4.nabble.com/mounting-mapping-subdomain-HomePage-tp4664880.html > > I now want to test the page using the following: > > > > The web app is set up to redirect if it sees that a request has been made > from a subdomain or domain that is *not* > > foo.myapp.com > or > foo.localhost:8080 > > Because of this redirect the above test fails. > > When I look at the host of the url in the request during the test, with a > call to: > > > > it returns "localhost". > > How can I set the host for urls // requests in WicketTester to > "foo.localhost" > > Cheers > > Simon > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/testing-subdomain-page-tp4664912.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >