@Test public void getMethodConfigShouldReturnConfig(){ assertSame(mockMethodConfig1, toTest.getMethodConfig(TestInterface.M1)); assertSame(mockMethodConfig2, toTest.getMethodConfig(TestInterface.M2)); assertNull(toTest.getMethodConfig(Classes.byName(Object.class, "toString"))); }
public MethodConfig getMethodConfig(Method meth) { return cache.get(meth); }
DefaultInterfaceConfig implements InterfaceConfig { public MethodConfig getMethodConfig(Method meth) { return cache.get(meth); } }
DefaultInterfaceConfig implements InterfaceConfig { public MethodConfig getMethodConfig(Method meth) { return cache.get(meth); } DefaultInterfaceConfig(Class<?> interfaze, Map<Method, MethodConfig> cache); }
DefaultInterfaceConfig implements InterfaceConfig { public MethodConfig getMethodConfig(Method meth) { return cache.get(meth); } DefaultInterfaceConfig(Class<?> interfaze, Map<Method, MethodConfig> cache); Class<?> getInterface(); MethodConfig getMethodConfig(Method meth); }
DefaultInterfaceConfig implements InterfaceConfig { public MethodConfig getMethodConfig(Method meth) { return cache.get(meth); } DefaultInterfaceConfig(Class<?> interfaze, Map<Method, MethodConfig> cache); Class<?> getInterface(); MethodConfig getMethodConfig(Method meth);  }