Code example for Invokable

Methods: getAnnotation

0
      else 
         assertEquals(assigned, expected); 
   } 
 
   protected void assertSaxResponseParserClassEquals(Invokable<?, ?> method, @Nullable Class<?> parserClass) { 
      XMLResponseParser annotation = method.getAnnotation(XMLResponseParser.class); 
      Class<?> expected =  (annotation != null) ? annotation.value() : null; 
      assertEquals(expected, parserClass); 
   } 
 
   protected void assertResponseParserClassEquals(Invokable<?, ?> method, GeneratedHttpRequest request, 
         @Nullable Class<?> parserClass) { 
      assertEquals(injector.getInstance(TransformerForRequest.class).apply(request).getClass(), parserClass); 
   } 
}