Package org.apache.wicket.util.tester

Examples of org.apache.wicket.util.tester.SwarmFormTester


    assertTrue(mock.getWicketSession().isTemporary());
    mock.processRequestCycle(MockLoginPage.class);
    // loginpage, else the homepage will be used which will trigger a bind
    // because a throw restartResponseAtInterceptPageexception will trigger
    // a session.bind
    SwarmFormTester form = mock.newFormTester("form");
    form.setValue("username", "test");
    form.submit();
    mock.assertRenderedPage(MockHomePage.class);
    mock.setupRequestAndResponse();
    assertFalse(Session.get().isTemporary());
    mock.processRequestCycle(MockLoginPage.class);
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.util.tester.SwarmFormTester

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.