use of org.opennms.core.spring.web.ServiceRegistryHttpInvokerServiceExporter in project opennms by OpenNMS.
the class HttpRemotingWebAppIT method test.
@Test
public void test() throws Exception {
WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(servletContext);
assertTrue(context.containsBean("serviceRegistry"));
assertTrue(context.containsBean("serviceRegistryExporter"));
ServiceRegistry registry = context.getBean("serviceRegistry", ServiceRegistry.class);
ServiceRegistryHttpInvokerServiceExporter exporter = context.getBean("serviceRegistryExporter", ServiceRegistryHttpInvokerServiceExporter.class);
assertEquals(exporter.getServiceRegistry(), registry);
assertTrue(exporter.getServiceRegistry() == registry);
}
Aggregations