Search in sources :

Example 1 with ClusterRouter

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());
}
Also used : ClusterId(com.nokia.dempsy.config.ClusterId) ClusterRouter(com.nokia.dempsy.router.Router.ClusterRouter) Test(org.junit.Test)

Aggregations

ClusterId (com.nokia.dempsy.config.ClusterId)1 ClusterRouter (com.nokia.dempsy.router.Router.ClusterRouter)1 Test (org.junit.Test)1