Package org.apache.wicket.protocol.http

Examples of org.apache.wicket.protocol.http.MultiPartTestApplication


   * https://issues.apache.org/jira/browse/WICKET-4715
   */
  @Test
  public void multiPartWebRequest()
  {
    MultiPartTestApplication application = new MultiPartTestApplication();
    new WicketTester(application); // inits the app

    MockHttpServletRequest httpRequest = new MockHttpServletRequest(null, null, null);
    httpRequest.setURL("/");
    httpRequest.setParameter("some", "parameter");
    httpRequest.setMethod(Form.METHOD_POST);
    httpRequest.setUseMultiPartContentType(true);

    WebRequest webRequest = application.createWebRequest(httpRequest, "/");
    assertTrue(webRequest instanceof MultipartServletWebRequest);
  }
View Full Code Here


   * https://issues.apache.org/jira/browse/WICKET-4715
   */
  @Test
  public void multiPartWebRequest()
  {
    MultiPartTestApplication application = new MultiPartTestApplication();
    new WicketTester(application); // inits the app

    MockHttpServletRequest httpRequest = new MockHttpServletRequest(null, null, null);
    httpRequest.setURL("/");
    httpRequest.setParameter("some", "parameter");
    httpRequest.setMethod(Form.METHOD_POST);
    httpRequest.setUseMultiPartContentType(true);

    WebRequest webRequest = application.createWebRequest(httpRequest, "/");
    assertTrue(webRequest instanceof MultipartServletWebRequest);
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.protocol.http.MultiPartTestApplication

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.