Package org.apache.cxf.dosgi.dsw

Examples of org.apache.cxf.dosgi.dsw.Activator


        dsw.stop();
    }

    // separated for test case
    protected Activator createActivator() {
        return new Activator();
    }
View Full Code Here


public class DSWActivatorTest extends TestCase {

    public void testStartStop() throws Exception{

        BundleContext bc = EasyMock.createNiceMock(BundleContext.class);
        final Activator a = EasyMock.createNiceMock(Activator.class);
       
        a.setBundleContext(bc);
        EasyMock.expectLastCall().atLeastOnce();
       
        a.start();
        EasyMock.expectLastCall().once();
               
        EasyMock.replay(bc);
        EasyMock.replay(a);
       
        DSWActivator da = new DSWActivator(){
            protected org.apache.cxf.dosgi.dsw.Activator createActivator() {
                return a;
            };
        };
       
        da.start(bc);
       
        EasyMock.verify(a);
        EasyMock.reset(a);
       
        a.stop();
        EasyMock.expectLastCall().once();

        EasyMock.replay(a);
       
        da.stop(bc);
View Full Code Here

TOP

Related Classes of org.apache.cxf.dosgi.dsw.Activator

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.