Search in sources :

Example 1 with DefaultMuleContextBuilder

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);
}
Also used : DefaultMuleContextBuilder(org.mule.runtime.core.internal.context.DefaultMuleContextBuilder) DefaultNotificationListenerRegistry(org.mule.runtime.core.internal.context.notification.DefaultNotificationListenerRegistry) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 DefaultMuleContextBuilder (org.mule.runtime.core.internal.context.DefaultMuleContextBuilder)1 DefaultNotificationListenerRegistry (org.mule.runtime.core.internal.context.notification.DefaultNotificationListenerRegistry)1