Package de.odysseus.calyxo.base.test

Examples of de.odysseus.calyxo.base.test.TestSession


    ControlModuleContext module = new ControlModuleContext(config, mapping, null);
    assertTrue(group.isEmpty());
    group.add(module);
    assertFalse(group.isEmpty());
    assertSame(module, group.getControlModuleContext("test"));
    TestRequest request = new TestRequest(new TestSession(module.getServletContext()));
    group.setControlModuleContext(request, module);
    assertSame(module, ModuleSupport.getInstance(context).getModuleContext(request));
    group.remove(module);
    assertTrue(group.isEmpty());
  }
View Full Code Here


    ControlModuleGroup group = ControlModuleGroup.getInstance(context);
    DefaultModule module1 = createModule(context, "module1", "/module1/*", params);
    DefaultModule module2 = createModule(context, "module2", "/module2/*", params);
    group.add((ControlModuleContext)module1.getContext());
    group.add((ControlModuleContext)module2.getContext());
    TestRequest request = new TestRequest(new TestSession(context));
    TestResponse response = new TestResponse();

    module1.process(request, response, "/index");
    assertEquals("/module1/index.jsp", request.getRecentRequestDispatchPath());

View Full Code Here

TOP

Related Classes of de.odysseus.calyxo.base.test.TestSession

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.