Search in sources :

Example 1 with InMemoryGraphmlRepository

use of org.opennms.features.graphml.service.InMemoryGraphmlRepository in project opennms by OpenNMS.

the class GraphMLRestServiceIT method afterServletStart.

@Override
protected void afterServletStart() throws Exception {
    MockLogAppender.setupLogging(true, "DEBUG");
    System.setProperty("opennms.home", "target/" + getClass().getSimpleName().toLowerCase());
    // Register dummy graphml repository
    final ServiceRegistry serviceRegistry = BeanUtils.getBean("soaContext", "serviceRegistry", ServiceRegistry.class);
    serviceRegistry.register(new InMemoryGraphmlRepository(), GraphmlRepository.class);
}
Also used : ServiceRegistry(org.opennms.core.soa.ServiceRegistry) InMemoryGraphmlRepository(org.opennms.features.graphml.service.InMemoryGraphmlRepository)

Aggregations

ServiceRegistry (org.opennms.core.soa.ServiceRegistry)1 InMemoryGraphmlRepository (org.opennms.features.graphml.service.InMemoryGraphmlRepository)1