I would like to unit test (jUnit 4) the behavior of my pages when I click the browser back button (or redirect or update).
Is there any way to simulate the browser buttons back / forward / update in unit test? Is there a utility class that provides such functions?
2nd Edit:
I understand that the Wicket test tools do not simulate a browser with a full history. In my opinion, to simulate browser behavior with unit test:
I will need the following two things:(1) The cabinet should tell me what exact request (e.g. URL) is made when I call WicketTester.startPage()or WicketTester.clickLink().
(2) The gate should again process the same request, for example. by accepting the URL previously written in (1).
I want to do this in a way that is compatible with WicketTester, FormTesteretc., since I use search components, assertions, and nicer functionality in these classes. This means that I have to send requests from Wicket, and not from external clients such as HttpUnit / HtmlUnit / Selenium.
source
share