Package org.araneaframework.servlet.core

Examples of org.araneaframework.servlet.core.StandardServletInputData


      eventListenerId = eventId.substring(lastDot + 1);
    }
   
    request.addParameter(StandardWidget.EVENT_PARAMETER_KEY, eventParameter);
    request.addParameter(StandardWidget.EVENT_HANDLER_ID_KEY, eventListenerId);
    StandardServletInputData input = new StandardServletInputData(request);
   
    widget._getWidget().event(new StandardPath(eventPath), input);
  }
View Full Code Here


 
  public static void emulateHandleEventForControl(Widget widget, String eventId, String eventParameter) throws Exception {
    MockHttpServletRequest request = new MockHttpServletRequest();
   
    request.addParameter(StandardWidget.EVENT_PARAMETER_KEY, eventParameter);
   StandardServletInputData input = new StandardServletInputData(request);
   
    widget._getWidget().event(new StandardPath(eventId), input);
  }
View Full Code Here

   
    widget._getWidget().event(new StandardPath(eventId), input);
  }
 
  public static void emulateHandleRequest(Widget widget, String widgetId, HttpServletRequest request) throws Exception {
    StandardServletInputData input = new StandardServletInputData(request);
   
    input.pushScope(widgetId);
    widget._getWidget().update(input);
    input.popScope();
 
View Full Code Here

 
  public void testConsistentKeyRoutesUpdate() throws Exception {
    Long key = ((Long)trans.getTransactionId());
   
    req.addParameter(StandardTransactionFilterWidget.TRANSACTION_ID_KEY, key.toString());
    StandardServletInputData input = new StandardServletInputData(req);
    trans._getWidget().update(input);
   
    assertTrue(child.isUpdateCalled());   
  }
View Full Code Here

 
  public void testInConsistentKeyDoesntRouteUpdate() throws Exception {
    long key = ((Long)trans.getTransactionId()).longValue();
   
    req.addParameter(StandardTransactionFilterWidget.TRANSACTION_ID_KEY, (++key)+"");
    StandardServletInputData input = new StandardServletInputData(req);
    trans._getWidget().update(input);
   
    trans._getWidget().update(input);
    assertFalse(child.isUpdateCalled());
  }
View Full Code Here

 
  public void testConsistentKeyRoutesEvent() throws Exception {
    Long key = ((Long)trans.getTransactionId());
   
    req.addParameter(StandardTransactionFilterWidget.TRANSACTION_ID_KEY, key.toString());
    StandardServletInputData input = new StandardServletInputData(req);
    trans._getWidget().update(input);
   
    trans._getWidget().event(new StandardPath(""), input);
    assertTrue(child.isEventCalled());   
  }
View Full Code Here

 
  public void testInConsistentKeyDoesntRouteEvent() throws Exception {   
    long key = ((Long)trans.getTransactionId()).longValue();
   
    req.addParameter(StandardTransactionFilterWidget.TRANSACTION_ID_KEY, (++key)+"");
    StandardServletInputData input = new StandardServletInputData(req);
    trans._getWidget().update(input);
   
    trans._getWidget().event(new StandardPath(""), input);
    assertFalse(child.isEventCalled());
  }
View Full Code Here

 
  public void testConsistentKeyRoutesProcess() throws Exception {
    Long key = ((Long)trans.getTransactionId());
   
    req.addParameter(StandardTransactionFilterWidget.TRANSACTION_ID_KEY, key.toString());
    StandardServletInputData input = new StandardServletInputData(req);
    trans._getWidget().update(input);
   
    trans._getWidget().process();
    assertTrue(child.isProcessCalled());   
  }
View Full Code Here

 
  public void testInConsistentKeyDoesntRouteProcess() throws Exception {   
    long key = ((Long)trans.getTransactionId()).longValue();
   
    req.addParameter(StandardTransactionFilterWidget.TRANSACTION_ID_KEY, (++key)+"");
    StandardServletInputData input = new StandardServletInputData(req);
    trans._getWidget().update(input);
   
    trans._getWidget().process();
    assertFalse(child.isProcessCalled());
  }
View Full Code Here

    child2 = new MockEventfulStandardService();
   
    req = new MockHttpServletRequest();
    res = new MockHttpServletResponse();
   
    input = new StandardServletInputData(req);
    output = new StandardServletOutputData(req, res);
   
    map.put("first", child1);
    map.put("second", 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.