use of org.mule.runtime.config.internal.ServerNotificationManagerConfigurator in project mule by mulesoft.
the class ServerNotificationManagerConfiguratorTestCase method before.
@Before
public void before() {
registry = mock(Registry.class);
notificationManager = mock(ServerNotificationManager.class);
context = mock(MuleContext.class);
doReturn(notificationManager).when(context).getNotificationManager();
configurator = new ServerNotificationManagerConfigurator();
configurator.setMuleContext(context);
configurator.setRegistry(registry);
final ApplicationContext springContext = mock(ApplicationContext.class);
doReturn(new String[0]).when(springContext).getBeanNamesForType(NotificationListener.class, false, true);
configurator.setApplicationContext(springContext);
}
Aggregations