@Test public void shouldNotSupplyMethodAnnotatedMethodWithInvalidSignature() { UnaryMethodHandlerSupplier supplier = new UnaryMethodHandlerSupplier(); AnnotatedMethod method = getMethod("badArg", String.class, String.class); assertThat(supplier.supplies(method), is(false)); }
@Override public boolean supplies(AnnotatedMethod method) { return super.supplies(method) && determineCallType(method) != CallType.unknown; }
UnaryMethodHandlerSupplier extends AbstractMethodHandlerSupplier { @Override public boolean supplies(AnnotatedMethod method) { return super.supplies(method) && determineCallType(method) != CallType.unknown; } }
UnaryMethodHandlerSupplier extends AbstractMethodHandlerSupplier { @Override public boolean supplies(AnnotatedMethod method) { return super.supplies(method) && determineCallType(method) != CallType.unknown; } UnaryMethodHandlerSupplier(); }
UnaryMethodHandlerSupplier extends AbstractMethodHandlerSupplier { @Override public boolean supplies(AnnotatedMethod method) { return super.supplies(method) && determineCallType(method) != CallType.unknown; } UnaryMethodHandlerSupplier(); @Override boolean supplies(AnnotatedMethod method); @Override MethodHandler<ReqT, RespT> get(String methodName, AnnotatedMethod method, Supplier<?> instance); }
UnaryMethodHandlerSupplier extends AbstractMethodHandlerSupplier { @Override public boolean supplies(AnnotatedMethod method) { return super.supplies(method) && determineCallType(method) != CallType.unknown; } UnaryMethodHandlerSupplier(); @Override boolean supplies(AnnotatedMethod method); @Override MethodHandler<ReqT, RespT> get(String methodName, AnnotatedMethod method, Supplier<?> instance);  }