use of org.apache.wicket.util.tester.WicketTester in project wicket by apache.
the class SessionSizeModelTest method testToleranceOnProblematicSessions.
/**
* @see <a href="https://issues.apache.org/jira/browse/WICKET-3355">WICKET-3355</a>
*/
@Test
public void testToleranceOnProblematicSessions() {
new WicketTester(new MockApplication() {
@Override
public Session newSession(final Request request, final Response response) {
return new TestSession(request);
}
});
SessionSizeModel model = new SessionSizeModel();
assertEquals(null, model.getObject());
}
use of org.apache.wicket.util.tester.WicketTester in project wicket by apache.
the class StatelessCheckerTest method setUp.
@Before
public void setUp() {
tester = new WicketTester();
checker = new StatelessChecker();
checkerQuietly = new StatelessCheckerQuietly();
}
use of org.apache.wicket.util.tester.WicketTester in project sandbox by irof.
the class ResourcePageTest method setUp.
@Before
public void setUp() {
tester = new WicketTester(new WicketApplication());
tester.startPage(ResourcePage.class);
}
use of org.apache.wicket.util.tester.WicketTester in project sandbox by irof.
the class HomePageTest method setUp.
@Before
public void setUp() {
tester = new WicketTester(new WicketApplication());
tester.startPage(HomePage.class);
}
use of org.apache.wicket.util.tester.WicketTester in project midpoint by Evolveum.
the class AbstractGuiIntegrationTest method initSystem.
@Override
public void initSystem(Task initTask, OperationResult initResult) throws Exception {
logger.info("before super init");
super.initSystem(initTask, initResult);
logger.info("after super init");
login(USER_ADMINISTRATOR_USERNAME);
logger.info("user logged in");
// cglib used by wicket unsupport java 15+ so we need use byte buddy generation for wicket
// We can remove this after cglib(wicket) fix issue with java 15+ or when wicket will use byte buddy as default
System.setProperty("wicket.ioc.useByteBuddy", "true");
tester = new WicketTester(application, true);
}
Aggregations