I want to run my tests in WicketTester in deployment mode? Is it possible to do that? I tried searching the web, but WicketTester is not really well documented.
How can I run a test in deployment mode with WicketTester?
65 views Asked by Kamil Grosicki At
1
Yes, it is possible. If you call the
WicketTesterconstructor you can pass a parameter of typeWebApplication. TheWebApplicationobject defines if your application is running in development or deployment mode. If your using a DummyWebApplication and always want to run your tests in deployment mode just overridegetConfigurationType()like shown below:There are multiple other ways, like defining it in your web.xml of your application used for tests or set the system wide property
wicket.configuration. Also check WebApplication.getConfigurationType() on Github