Package net.sourceforge.urlrewriter4j.core.errors

Examples of net.sourceforge.urlrewriter4j.core.errors.DefaultErrorHandler.handleError()


   */
  @Test
  public void handleError() throws Exception {
    DefaultErrorHandler oHandler = new DefaultErrorHandler("/error.html");
    MockContextFacade oContext = new MockContextFacade("http://test.com/doesnotmatter.html");
    oHandler.handleError(oContext);
    oContext.expectLocation("/error.html");
    oContext.expectRedirectLocation(null);
  }

}
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.