1 22 package org.objectweb.petals.jbi.component.mock; 23 24 import java.net.URI ; 25 26 import javax.jbi.JBIException; 27 import javax.management.ObjectName ; 28 29 import org.objectweb.petals.jbi.component.lifecycle.ServiceAssemblyLifeCycle; 30 import org.objectweb.petals.jbi.management.systemstate.SystemState; 31 import org.objectweb.petals.repository.RepositoryService; 32 import org.objectweb.petals.tools.jbicommon.descriptor.ServiceAssembly; 33 import org.objectweb.petals.util.LoggingUtil; 34 35 import static org.easymock.classextension.EasyMock.createMock; 36 37 43 public class MockServiceAssemblyLifeCycle2 extends ServiceAssemblyLifeCycle { 44 45 public MockServiceAssemblyLifeCycle2(ObjectName mbeanName, LoggingUtil log, ServiceAssembly serviceAssembly, RepositoryService repositoryService, SystemState recoverySrv, URI installationRoot) { 46 super(mbeanName, log, serviceAssembly, repositoryService, recoverySrv, 47 installationRoot); 48 } 49 50 51 @Override 52 public void shutDown() throws JBIException { 53 throw createMock(JBIException.class); 54 } 55 56 } 57 | Popular Tags |