Package javango.middleware

Examples of javango.middleware.CommonMiddleware


  public void testRedirect() throws Exception {
    HttpRequest request = new HttpRequest();
    request.setPath("hello");
    request.setContext("/myapp");
   
    CommonMiddleware middleware = new CommonMiddleware();
    javango.http.HttpResponse response = middleware.processRequest(request);
   
    assertNotNull(response);
    assertTrue(response instanceof HttpResponseRedirect);
    assertEquals("/myapp/hello/", ((HttpResponseRedirect)response).getUrl());
  }
View Full Code Here

TOP

Related Classes of javango.middleware.CommonMiddleware

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.