Package org.araneaframework.mock.core

Examples of org.araneaframework.mock.core.MockEventfulBaseService


  private Path path;
 
  public void setUp() throws Exception {
    service = new StandardServletSessionRouterService();
    child = new MockEventfulBaseService();
    StandardSpringServiceFactory factory = new StandardSpringServiceFactory() {
      public Service buildService() {
        return child;
      }
    };
View Full Code Here


  private MockHttpServletRequest req;
  private MockHttpServletResponse res;
 
  public void setUp() throws Exception {
    service = new StandardStatisticFilterService();
    child = new MockEventfulBaseService();
    service.setChildService(child);
    MockLifeCycle.begin(service);
   
    req = new MockHttpServletRequest();
    res = new MockHttpServletResponse();
View Full Code Here

  private MockHttpServletRequest req;
  private MockHttpServletResponse res;
 
  public void setUp() throws Exception {
    service = new StandardSerializingAuditFilterService();
    child = new MockEventfulBaseService();
    service.setChildService(child);
   
    httpSession = new MockHttpSession();
   
    Map map = new HashMap();
View Full Code Here

        return factoryCreatedService;
      }
    };
   
    service = new StandardCriticalExceptionHandlingFilterService();
    child = new MockEventfulBaseService();
   
    service.setChildService(child);
    service.setExceptionHandlerFactory(factory);
    MockLifeCycle.begin(service);
   
View Full Code Here

 
  public void testActionThrowsException() throws Exception {
    final Exception exception = new AraneaRuntimeException("Another one bites the dust");
   
    service = new StandardCriticalExceptionHandlingFilterService();
    child = new MockEventfulBaseService() {
      public void action(Path path, InputData input, OutputData output) throws Exception {
        ((ServletOutputData)output).getResponse().getOutputStream().write(new byte[] {1});
        throw exception;
      }
    };
View Full Code Here

  private MockHttpServletRequest req;
  private MockHttpServletResponse res;
 
  public void setUp() throws Exception {
    service = new StandardSynchronizingFilterService();
    child = new MockEventfulBaseService();
    service.setChildService(child);
    MockLifeCycle.begin(service);
   
    req = new MockHttpServletRequest();
    res = new MockHttpServletResponse();
View Full Code Here

TOP

Related Classes of org.araneaframework.mock.core.MockEventfulBaseService

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.