Package org.osoa.sca

Examples of org.osoa.sca.SCA


        runtime.setApplicationName("application");
        runtime.setApplicationScdl(applicationScdl);
        runtime.setApplicationClassLoader(applicationClassLoader);
        runtime.setRuntimeInfo(runtimeInfo);
        runtime.initialize();
        SCA context = runtime.getContext();

        try {
            context.start();
            booter.runApplication(applicationJar, applicationClassLoader, appArgs);
        } finally {
            context.stop();
            runtime.destroy();
        }
    }
View Full Code Here


* @version $Rev: 441961 $ $Date: 2006-09-10 08:48:29 -0700 (Sun, 10 Sep 2006) $
*/
public class TuscanyFilterTestCase extends TestCase {

    public void testStartStopFilter() throws Exception {
        SCA sca = EasyMock.createNiceMock(SCA.class);
        sca.start();
        sca.stop();
        EasyMock.replay(sca);
        WebappRuntime runtime = createMock(WebappRuntime.class);
        expect(runtime.getContext()).andReturn(sca);
        runtime.startRequest();
        runtime.stopRequest();
View Full Code Here

        verify(runtime);
        EasyMock.verify(sca);
    }

    public void testExceptionCleanupFilter() throws Exception {
        SCA sca = EasyMock.createNiceMock(SCA.class);
        sca.start();
        sca.stop();
        EasyMock.replay(sca);
        WebappRuntime runtime = createMock(WebappRuntime.class);
        runtime.startRequest();
        runtime.stopRequest();
        expect(runtime.getContext()).andReturn(sca);
View Full Code Here

TOP

Related Classes of org.osoa.sca.SCA

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.