Package org.araneaframework.servlet.core

Examples of org.araneaframework.servlet.core.StandardServletInputData


    service._getComponent().init(MockUtil.getEnv());
  }
 
  public void testActionGetsCalled() throws Exception {
    req.addParameter("serviceId", "first");
    input = new StandardServletInputData(req);
   
    service._getService().action(MockUtil.getPath(), input, output);
   
    req = new MockHttpServletRequest();
    req.addParameter("serviceId", "second");
    input = new StandardServletInputData(req);
   
    service._getService().action(MockUtil.getPath(), input, output);
   
    assertTrue(child1.getActionCalled());
    assertTrue(child2.getActionCalled());
View Full Code Here


    assertTrue(child2.getActionCalled());
  }
 
  public void testNonExistentServiceThrowsException() throws Exception {
    req.addParameter("serviceId", "nonExistentService");
    input = new StandardServletInputData(req);
    try {
      service._getService().action(MockUtil.getPath(), input, output);
      fail("Was able to call a non existent service");
    }
    catch (NoSuchServiceException e) {
View Full Code Here

    child2 = new MockEventfulStandardService();
   
    req = new MockHttpServletRequest();
    res = new MockHttpServletResponse();
   
    input = new StandardServletInputData(req);
    output = new StandardServletOutputData(req, res);
   
    map.put("child1", child1);
    map.put("child2", child2);
   
View Full Code Here

    MockLifeCycle.begin(parent);
   
    req = new MockHttpServletRequest();
    res = new MockHttpServletResponse();
   
    input = new StandardServletInputData(req);
    output = new StandardServletOutputData(req, res);
   
    path = MockUtil.getPath();
  }
View Full Code Here

  }
 
  public void testActionGetsCalled() throws Exception {
    String pathStr = "i.am.a.path.who.are.you";
    req.addParameter(StandardWidgetContainerWidget.ACTION_PATH_KEY, pathStr);
    input = new StandardServletInputData(req);
   
    parent._getService().action(path, input, output);
    assertTrue(child.getActionCalled());
    assertTrue(pathStr.equals(child.getPath().toString()));
  }
View Full Code Here

  }
 
  public void testActionDoesNotGetCalled() throws Exception {
    String pathStr = null;
    req.addParameter(StandardWidgetContainerWidget.ACTION_PATH_KEY, pathStr);
    input = new StandardServletInputData(req);
   
    parent._getService().action(path, input, output);
    assertFalse(child.getActionCalled());
  }
View Full Code Here

  }
 
  public void testEventGetsCalled() throws Exception {
    String pathStr = "i.am.a.path.who.are.you";
    req.addParameter(StandardWidgetContainerWidget.EVENT_PATH_KEY, pathStr);
    input = new StandardServletInputData(req);
   
    parent._getWidget().event(path, input);
    assertTrue(child.getEventProcessed());
    assertTrue(pathStr.equals(child.getPath().toString()));
  }
View Full Code Here

  }
 
  public void testEventDoesNotGetCalled() throws Exception {
    String pathStr = null;
    req.addParameter(StandardWidgetContainerWidget.EVENT_PATH_KEY, pathStr);
    input = new StandardServletInputData(req);
   
    parent._getWidget().event(path, input);
    assertFalse(child.getEventProcessed());
  }
View Full Code Here

    MockLifeCycle.begin(service);
   
    req = new MockHttpServletRequest();
    res = new MockHttpServletResponse();
   
    input = new StandardServletInputData(req);
    output = new StandardServletOutputData(req, res);
  }
View Full Code Here

    child2 = new MockEventfulStandardService();
   
    req = new MockHttpServletRequest();
    res = new MockHttpServletResponse();
   
    input = new StandardServletInputData(req);
    output = new StandardServletOutputData(req, res);
   
    map.put("child1", child1);
    map.put("child2", child2);
   
View Full Code Here

TOP

Related Classes of org.araneaframework.servlet.core.StandardServletInputData

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.