use of org.mule.runtime.core.internal.context.DefaultMuleContextBuilder in project mule by mulesoft.
the class MuleContextLifecycleTestCase method setup.
@Before
public void setup() throws Exception {
ctxBuilder = new DefaultMuleContextBuilder(APP);
lifecycleManager = new SensingLifecycleManager();
ctxBuilder.setLifecycleManager(lifecycleManager);
callbackListener = new TestMuleContextListener();
ctxBuilder.setListeners(Arrays.asList(callbackListener));
ctx = ctxBuilder.buildMuleContext();
notificationListenerRegistry = new DefaultNotificationListenerRegistry();
((MuleContextWithRegistries) ctx).getRegistry().registerObject(NotificationListenerRegistry.REGISTRY_KEY, notificationListenerRegistry);
testServicesConfigurationBuilder.configure(ctx);
}
Aggregations