Package org.jboss.msc.service

Examples of org.jboss.msc.service.StartContext


        Mockito.verify(builder).install();

        // Now we're going to check that the service that was created inside aii.update() works correctly...
        // First, mock up a separate ServiceController, specific to the service created in aii.update()
        ServiceController innerController = Mockito.mock(ServiceController.class);
        StartContext context = Mockito.mock(StartContext.class);
        Mockito.when(context.getController()).thenReturn(innerController);
        Assert.assertEquals(1, addedServices.size());

        // Call start() on the service, which should do its work...
        addedServices.get(0).start(context);
View Full Code Here

TOP

Related Classes of org.jboss.msc.service.StartContext

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.