@Test(expected = IllegalArgumentException.class) public void shouldThrowExceptionWhenUsingParametersOfWrongTypes() { handler.get(TestController.class).get("method").get(123).toString(); }
@Override public LinkMethod get(Object key) { return new LinkMethod((Class<?>) key); }
LinkToHandler extends ForwardingMap<Class<?>, Object> { @Override public LinkMethod get(Object key) { return new LinkMethod((Class<?>) key); } }
LinkToHandler extends ForwardingMap<Class<?>, Object> { @Override public LinkMethod get(Object key) { return new LinkMethod((Class<?>) key); } LinkToHandler(ServletContext context, Router router); }
LinkToHandler extends ForwardingMap<Class<?>, Object> { @Override public LinkMethod get(Object key) { return new LinkMethod((Class<?>) key); } LinkToHandler(ServletContext context, Router router); void start(); @Override LinkMethod get(Object key); }
LinkToHandler extends ForwardingMap<Class<?>, Object> { @Override public LinkMethod get(Object key) { return new LinkMethod((Class<?>) key); } LinkToHandler(ServletContext context, Router router); void start(); @Override LinkMethod get(Object key);  }