use of com.nokia.dempsy.router.Router.ClusterRouter in project Dempsy by Dempsy.
the class TestRouterClusterManagement method testGetRouterFound.
@Test
public void testGetRouterFound() {
Set<ClusterRouter> routers = routerFactory.getRouter(java.lang.Exception.class);
Assert.assertNotNull(routers);
Assert.assertEquals(false, routerFactory.missingMsgTypes.containsKey(java.lang.Exception.class));
Set<ClusterRouter> routers1 = routerFactory.getRouter(ClassNotFoundException.class);
Assert.assertEquals(routers, routers1);
Assert.assertEquals(new ClusterId("test", "test-slot"), routerFactory.getThisClusterId());
}
Aggregations