Package de.odysseus.calyxo.base.test

Examples of de.odysseus.calyxo.base.test.TestRequest.removeAttribute()


  public void testExtensionAction() throws ConfigException {
    ControlModuleMapping mapping = new ControlModuleMapping(null, ".test");
    TestRequest request = new TestRequest();
    request.setAttribute(INCLUDE_SERVLET_PATH, "/action.test");
    request.removeAttribute(INCLUDE_PATH_INFO);
    assertEquals("/action", mapping.getAction(request));
  }

  public void testPrefixExtensionAction() throws ConfigException {
    ControlModuleMapping mapping = new ControlModuleMapping("/test", ".do");
View Full Code Here


  public void testPrefixExtensionAction() throws ConfigException {
    ControlModuleMapping mapping = new ControlModuleMapping("/test", ".do");
    TestRequest request = new TestRequest();
    request.setAttribute(INCLUDE_SERVLET_PATH, "/test/action.do");
    request.removeAttribute(INCLUDE_PATH_INFO);
    assertEquals("/action", mapping.getAction(request));
  }

  public void testPrefixExtensionPath() throws ConfigException {
    ControlModuleMapping mapping = new ControlModuleMapping("/test", ".do");
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.