Package org.wicketstuff.rest.utils.test

Examples of org.wicketstuff.rest.utils.test.BufferedMockRequest


  @Test
  public void testJsonDeserializedParamRequest()
  {
    // test @RequestBody annotation
    BufferedMockRequest jsonMockRequest = new BufferedMockRequest(tester.getApplication(),
      tester.getHttpSession(), tester.getServletContext(), "POST");
    jsonMockRequest.setReader(new BufferedReader(new StringReader(TestJsonDesSer.getJSON())));

    tester.setRequest(jsonMockRequest);
    tester.executeUrl("./api/19");
  }
View Full Code Here


    @Before
    public void setUp()
    {
  tester = new WicketTester(new WicketApplication());
  mockRequest = new BufferedMockRequest(tester.getApplication(),
    tester.getHttpSession(), tester.getServletContext(), "POST");
    }
View Full Code Here

TOP

Related Classes of org.wicketstuff.rest.utils.test.BufferedMockRequest

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.