Package org.araneaframework.mock.servlet

Examples of org.araneaframework.mock.servlet.MockServletAtomicResponseExtension


   
    service.setChildService(child);
    service.setExceptionHandlerFactory(factory);
    MockLifeCycle.begin(service);
   
    MockServletAtomicResponseExtension ext = new MockServletAtomicResponseExtension();
    output.extend(ServletAtomicResponseOutputExtension.class, ext);
    service._getService().action(MockUtil.getPath(), input, output);
   
    // exception gets forwarded to render
    assertEquals(exception, this.exception);
    // render gets called
    assertTrue(factoryCreatedService.getActionCalled());
    // rollback called
    assertTrue(ext.getRollbackCalled());
    // weeee, exception handled gracefully
  }
View Full Code Here

TOP

Related Classes of org.araneaframework.mock.servlet.MockServletAtomicResponseExtension

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.