Package org.apache.wicket.util.tester

Examples of org.apache.wicket.util.tester.SwarmFormTester.submit()


    // 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
Copyright © 2018 www.massapi.com. 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.