@Test public void testGetRouterConfigInformation() { Map<String, String> result = tested.getRouterConfigInformation(new TestCustomRouterConfig()); Map<String, String> expected = createdExpected(); assertEquals("extracted values", expected, result); }
public Map<String, String> getRouterConfigInformation(RouterConfig routerConfig) { Map<String, String> result = new HashMap<String, String>(); result.put("Router", routerConfig.getClass().getSimpleName()); String routerDispatcher = routerConfig.routerDispatcher(); result.put("Router Dispatcher", routerDispatcher); result.putAll(extract(routerConfig)); return result; }
AkkaRouterConfigHelper { public Map<String, String> getRouterConfigInformation(RouterConfig routerConfig) { Map<String, String> result = new HashMap<String, String>(); result.put("Router", routerConfig.getClass().getSimpleName()); String routerDispatcher = routerConfig.routerDispatcher(); result.put("Router Dispatcher", routerDispatcher); result.putAll(extract(routerConfig)); return result; } }
AkkaRouterConfigHelper { public Map<String, String> getRouterConfigInformation(RouterConfig routerConfig) { Map<String, String> result = new HashMap<String, String>(); result.put("Router", routerConfig.getClass().getSimpleName()); String routerDispatcher = routerConfig.routerDispatcher(); result.put("Router Dispatcher", routerDispatcher); result.putAll(extract(routerConfig)); return result; } private  AkkaRouterConfigHelper(); }
AkkaRouterConfigHelper { public Map<String, String> getRouterConfigInformation(RouterConfig routerConfig) { Map<String, String> result = new HashMap<String, String>(); result.put("Router", routerConfig.getClass().getSimpleName()); String routerDispatcher = routerConfig.routerDispatcher(); result.put("Router Dispatcher", routerDispatcher); result.putAll(extract(routerConfig)); return result; } private  AkkaRouterConfigHelper(); static final AkkaRouterConfigHelper getInstance(); Map<String, String> getRouterConfigInformation(RouterConfig routerConfig); }
AkkaRouterConfigHelper { public Map<String, String> getRouterConfigInformation(RouterConfig routerConfig) { Map<String, String> result = new HashMap<String, String>(); result.put("Router", routerConfig.getClass().getSimpleName()); String routerDispatcher = routerConfig.routerDispatcher(); result.put("Router Dispatcher", routerDispatcher); result.putAll(extract(routerConfig)); return result; } private  AkkaRouterConfigHelper(); static final AkkaRouterConfigHelper getInstance(); Map<String, String> getRouterConfigInformation(RouterConfig routerConfig);  }