@Test public void mappingShouldContainsAllSupportedJaxRsAnnotations(){ assertEquals(36, CRestAnnotations.getMapping().size()); assertEquals(ConnectionTimeoutAnnotationHandler.class, CRestAnnotations.getMapping().get(ConnectionTimeout.class)); assertEquals(ConsumesAnnotationHandler.class, CRestAnnotations.getMapping().get(Consumes.class)); assertEquals(CookieParamAnnotationHandler.class, CRestAnnotations.getMapping().get(CookieParam.class)); assertEquals(CookieParamsAnnotationHandler.class, CRestAnnotations.getMapping().get(CookieParams.class)); assertEquals(DELETEAnnotationHandler.class, CRestAnnotations.getMapping().get(DELETE.class)); assertEquals(EncodedAnnotationHandler.class, CRestAnnotations.getMapping().get(Encoded.class)); assertEquals(EncodingAnnotationHandler.class, CRestAnnotations.getMapping().get(Encoding.class)); assertEquals(EndPointAnnotationHandler.class, CRestAnnotations.getMapping().get(EndPoint.class)); assertEquals(EntityWriterAnnotationHandler.class, CRestAnnotations.getMapping().get(EntityWriter.class)); assertEquals(ErrorHandlerAnnotationHandler.class, CRestAnnotations.getMapping().get(ErrorHandler.class)); assertEquals(FormParamAnnotationHandler.class, CRestAnnotations.getMapping().get(FormParam.class)); assertEquals(FormParamsAnnotationHandler.class, CRestAnnotations.getMapping().get(FormParams.class)); assertEquals(GETAnnotationHandler.class, CRestAnnotations.getMapping().get(GET.class)); assertEquals(HEADAnnotationHandler.class, CRestAnnotations.getMapping().get(HEAD.class)); assertEquals(HeaderParamAnnotationHandler.class, CRestAnnotations.getMapping().get(HeaderParam.class)); assertEquals(HeaderParamsAnnotationHandler.class, CRestAnnotations.getMapping().get(HeaderParams.class)); assertEquals(ListSeparatorAnnotationHandler.class, CRestAnnotations.getMapping().get(ListSeparator.class)); assertEquals(MatrixParamAnnotationHandler.class, CRestAnnotations.getMapping().get(MatrixParam.class)); assertEquals(MatrixParamsAnnotationHandler.class, CRestAnnotations.getMapping().get(MatrixParams.class)); assertEquals(MultiPartParamAnnotationHandler.class, CRestAnnotations.getMapping().get(MultiPartParam.class)); assertEquals(MultiPartParamsAnnotationHandler.class, CRestAnnotations.getMapping().get(MultiPartParams.class)); assertEquals(OPTIONSAnnotationHandler.class, CRestAnnotations.getMapping().get(OPTIONS.class)); assertEquals(PathAnnotationHandler.class, CRestAnnotations.getMapping().get(Path.class)); assertEquals(PathParamAnnotationHandler.class, CRestAnnotations.getMapping().get(PathParam.class)); assertEquals(PathParamsAnnotationHandler.class, CRestAnnotations.getMapping().get(PathParams.class)); assertEquals(POSTAnnotationHandler.class, CRestAnnotations.getMapping().get(POST.class)); assertEquals(ProducesAnnotationHandler.class, CRestAnnotations.getMapping().get(Produces.class)); assertEquals(PUTAnnotationHandler.class, CRestAnnotations.getMapping().get(PUT.class)); assertEquals(QueryParamAnnotationHandler.class, CRestAnnotations.getMapping().get(QueryParam.class)); assertEquals(QueryParamsAnnotationHandler.class, CRestAnnotations.getMapping().get(QueryParams.class)); assertEquals(RequestInterceptorAnnotationHandler.class, CRestAnnotations.getMapping().get(RequestInterceptor.class)); assertEquals(ResponseHandlerAnnotationHandler.class, CRestAnnotations.getMapping().get(ResponseHandler.class)); assertEquals(RetryHandlerAnnotationHandler.class, CRestAnnotations.getMapping().get(RetryHandler.class)); assertEquals(SerializerAnnotationHandler.class, CRestAnnotations.getMapping().get(Serializer.class)); assertEquals(SocketTimeoutAnnotationHandler.class, CRestAnnotations.getMapping().get(SocketTimeout.class)); assertEquals(DeserializerAnnotationHandler.class, CRestAnnotations.getMapping().get(Deserializer.class)); }
public static Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> getMapping(){ Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> handlers = new HashMap<Class<? extends Annotation>, Class<? extends AnnotationHandler>>(); handlers.put(ConnectionTimeout.class, ConnectionTimeoutAnnotationHandler.class); handlers.put(Consumes.class, ConsumesAnnotationHandler.class); handlers.put(CookieParam.class, CookieParamAnnotationHandler.class); handlers.put(CookieParams.class, CookieParamsAnnotationHandler.class); handlers.put(DELETE.class, DELETEAnnotationHandler.class); handlers.put(Encoded.class, EncodedAnnotationHandler.class); handlers.put(Encoding.class, EncodingAnnotationHandler.class); handlers.put(EndPoint.class, EndPointAnnotationHandler.class); handlers.put(EntityWriter.class, EntityWriterAnnotationHandler.class); handlers.put(ErrorHandler.class, ErrorHandlerAnnotationHandler.class); handlers.put(FormParam.class, FormParamAnnotationHandler.class); handlers.put(FormParams.class, FormParamsAnnotationHandler.class); handlers.put(GET.class, GETAnnotationHandler.class); handlers.put(HEAD.class, HEADAnnotationHandler.class); handlers.put(HeaderParam.class, HeaderParamAnnotationHandler.class); handlers.put(HeaderParams.class, HeaderParamsAnnotationHandler.class); handlers.put(ListSeparator.class, ListSeparatorAnnotationHandler.class); handlers.put(MatrixParam.class, MatrixParamAnnotationHandler.class); handlers.put(MatrixParams.class, MatrixParamsAnnotationHandler.class); handlers.put(MultiPartParam.class, MultiPartParamAnnotationHandler.class); handlers.put(MultiPartParams.class, MultiPartParamsAnnotationHandler.class); handlers.put(OPTIONS.class, OPTIONSAnnotationHandler.class); handlers.put(Path.class, PathAnnotationHandler.class); handlers.put(PathParam.class, PathParamAnnotationHandler.class); handlers.put(PathParams.class, PathParamsAnnotationHandler.class); handlers.put(POST.class, POSTAnnotationHandler.class); handlers.put(Produces.class, ProducesAnnotationHandler.class); handlers.put(PUT.class, PUTAnnotationHandler.class); handlers.put(QueryParam.class, QueryParamAnnotationHandler.class); handlers.put(QueryParams.class, QueryParamsAnnotationHandler.class); handlers.put(RequestInterceptor.class, RequestInterceptorAnnotationHandler.class); handlers.put(ResponseHandler.class, ResponseHandlerAnnotationHandler.class); handlers.put(RetryHandler.class, RetryHandlerAnnotationHandler.class); handlers.put(Serializer.class, SerializerAnnotationHandler.class); handlers.put(SocketTimeout.class, SocketTimeoutAnnotationHandler.class); handlers.put(Deserializer.class, DeserializerAnnotationHandler.class); return Collections.unmodifiableMap(handlers); }
CRestAnnotations { public static Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> getMapping(){ Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> handlers = new HashMap<Class<? extends Annotation>, Class<? extends AnnotationHandler>>(); handlers.put(ConnectionTimeout.class, ConnectionTimeoutAnnotationHandler.class); handlers.put(Consumes.class, ConsumesAnnotationHandler.class); handlers.put(CookieParam.class, CookieParamAnnotationHandler.class); handlers.put(CookieParams.class, CookieParamsAnnotationHandler.class); handlers.put(DELETE.class, DELETEAnnotationHandler.class); handlers.put(Encoded.class, EncodedAnnotationHandler.class); handlers.put(Encoding.class, EncodingAnnotationHandler.class); handlers.put(EndPoint.class, EndPointAnnotationHandler.class); handlers.put(EntityWriter.class, EntityWriterAnnotationHandler.class); handlers.put(ErrorHandler.class, ErrorHandlerAnnotationHandler.class); handlers.put(FormParam.class, FormParamAnnotationHandler.class); handlers.put(FormParams.class, FormParamsAnnotationHandler.class); handlers.put(GET.class, GETAnnotationHandler.class); handlers.put(HEAD.class, HEADAnnotationHandler.class); handlers.put(HeaderParam.class, HeaderParamAnnotationHandler.class); handlers.put(HeaderParams.class, HeaderParamsAnnotationHandler.class); handlers.put(ListSeparator.class, ListSeparatorAnnotationHandler.class); handlers.put(MatrixParam.class, MatrixParamAnnotationHandler.class); handlers.put(MatrixParams.class, MatrixParamsAnnotationHandler.class); handlers.put(MultiPartParam.class, MultiPartParamAnnotationHandler.class); handlers.put(MultiPartParams.class, MultiPartParamsAnnotationHandler.class); handlers.put(OPTIONS.class, OPTIONSAnnotationHandler.class); handlers.put(Path.class, PathAnnotationHandler.class); handlers.put(PathParam.class, PathParamAnnotationHandler.class); handlers.put(PathParams.class, PathParamsAnnotationHandler.class); handlers.put(POST.class, POSTAnnotationHandler.class); handlers.put(Produces.class, ProducesAnnotationHandler.class); handlers.put(PUT.class, PUTAnnotationHandler.class); handlers.put(QueryParam.class, QueryParamAnnotationHandler.class); handlers.put(QueryParams.class, QueryParamsAnnotationHandler.class); handlers.put(RequestInterceptor.class, RequestInterceptorAnnotationHandler.class); handlers.put(ResponseHandler.class, ResponseHandlerAnnotationHandler.class); handlers.put(RetryHandler.class, RetryHandlerAnnotationHandler.class); handlers.put(Serializer.class, SerializerAnnotationHandler.class); handlers.put(SocketTimeout.class, SocketTimeoutAnnotationHandler.class); handlers.put(Deserializer.class, DeserializerAnnotationHandler.class); return Collections.unmodifiableMap(handlers); } }
CRestAnnotations { public static Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> getMapping(){ Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> handlers = new HashMap<Class<? extends Annotation>, Class<? extends AnnotationHandler>>(); handlers.put(ConnectionTimeout.class, ConnectionTimeoutAnnotationHandler.class); handlers.put(Consumes.class, ConsumesAnnotationHandler.class); handlers.put(CookieParam.class, CookieParamAnnotationHandler.class); handlers.put(CookieParams.class, CookieParamsAnnotationHandler.class); handlers.put(DELETE.class, DELETEAnnotationHandler.class); handlers.put(Encoded.class, EncodedAnnotationHandler.class); handlers.put(Encoding.class, EncodingAnnotationHandler.class); handlers.put(EndPoint.class, EndPointAnnotationHandler.class); handlers.put(EntityWriter.class, EntityWriterAnnotationHandler.class); handlers.put(ErrorHandler.class, ErrorHandlerAnnotationHandler.class); handlers.put(FormParam.class, FormParamAnnotationHandler.class); handlers.put(FormParams.class, FormParamsAnnotationHandler.class); handlers.put(GET.class, GETAnnotationHandler.class); handlers.put(HEAD.class, HEADAnnotationHandler.class); handlers.put(HeaderParam.class, HeaderParamAnnotationHandler.class); handlers.put(HeaderParams.class, HeaderParamsAnnotationHandler.class); handlers.put(ListSeparator.class, ListSeparatorAnnotationHandler.class); handlers.put(MatrixParam.class, MatrixParamAnnotationHandler.class); handlers.put(MatrixParams.class, MatrixParamsAnnotationHandler.class); handlers.put(MultiPartParam.class, MultiPartParamAnnotationHandler.class); handlers.put(MultiPartParams.class, MultiPartParamsAnnotationHandler.class); handlers.put(OPTIONS.class, OPTIONSAnnotationHandler.class); handlers.put(Path.class, PathAnnotationHandler.class); handlers.put(PathParam.class, PathParamAnnotationHandler.class); handlers.put(PathParams.class, PathParamsAnnotationHandler.class); handlers.put(POST.class, POSTAnnotationHandler.class); handlers.put(Produces.class, ProducesAnnotationHandler.class); handlers.put(PUT.class, PUTAnnotationHandler.class); handlers.put(QueryParam.class, QueryParamAnnotationHandler.class); handlers.put(QueryParams.class, QueryParamsAnnotationHandler.class); handlers.put(RequestInterceptor.class, RequestInterceptorAnnotationHandler.class); handlers.put(ResponseHandler.class, ResponseHandlerAnnotationHandler.class); handlers.put(RetryHandler.class, RetryHandlerAnnotationHandler.class); handlers.put(Serializer.class, SerializerAnnotationHandler.class); handlers.put(SocketTimeout.class, SocketTimeoutAnnotationHandler.class); handlers.put(Deserializer.class, DeserializerAnnotationHandler.class); return Collections.unmodifiableMap(handlers); } private  CRestAnnotations(); }
CRestAnnotations { public static Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> getMapping(){ Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> handlers = new HashMap<Class<? extends Annotation>, Class<? extends AnnotationHandler>>(); handlers.put(ConnectionTimeout.class, ConnectionTimeoutAnnotationHandler.class); handlers.put(Consumes.class, ConsumesAnnotationHandler.class); handlers.put(CookieParam.class, CookieParamAnnotationHandler.class); handlers.put(CookieParams.class, CookieParamsAnnotationHandler.class); handlers.put(DELETE.class, DELETEAnnotationHandler.class); handlers.put(Encoded.class, EncodedAnnotationHandler.class); handlers.put(Encoding.class, EncodingAnnotationHandler.class); handlers.put(EndPoint.class, EndPointAnnotationHandler.class); handlers.put(EntityWriter.class, EntityWriterAnnotationHandler.class); handlers.put(ErrorHandler.class, ErrorHandlerAnnotationHandler.class); handlers.put(FormParam.class, FormParamAnnotationHandler.class); handlers.put(FormParams.class, FormParamsAnnotationHandler.class); handlers.put(GET.class, GETAnnotationHandler.class); handlers.put(HEAD.class, HEADAnnotationHandler.class); handlers.put(HeaderParam.class, HeaderParamAnnotationHandler.class); handlers.put(HeaderParams.class, HeaderParamsAnnotationHandler.class); handlers.put(ListSeparator.class, ListSeparatorAnnotationHandler.class); handlers.put(MatrixParam.class, MatrixParamAnnotationHandler.class); handlers.put(MatrixParams.class, MatrixParamsAnnotationHandler.class); handlers.put(MultiPartParam.class, MultiPartParamAnnotationHandler.class); handlers.put(MultiPartParams.class, MultiPartParamsAnnotationHandler.class); handlers.put(OPTIONS.class, OPTIONSAnnotationHandler.class); handlers.put(Path.class, PathAnnotationHandler.class); handlers.put(PathParam.class, PathParamAnnotationHandler.class); handlers.put(PathParams.class, PathParamsAnnotationHandler.class); handlers.put(POST.class, POSTAnnotationHandler.class); handlers.put(Produces.class, ProducesAnnotationHandler.class); handlers.put(PUT.class, PUTAnnotationHandler.class); handlers.put(QueryParam.class, QueryParamAnnotationHandler.class); handlers.put(QueryParams.class, QueryParamsAnnotationHandler.class); handlers.put(RequestInterceptor.class, RequestInterceptorAnnotationHandler.class); handlers.put(ResponseHandler.class, ResponseHandlerAnnotationHandler.class); handlers.put(RetryHandler.class, RetryHandlerAnnotationHandler.class); handlers.put(Serializer.class, SerializerAnnotationHandler.class); handlers.put(SocketTimeout.class, SocketTimeoutAnnotationHandler.class); handlers.put(Deserializer.class, DeserializerAnnotationHandler.class); return Collections.unmodifiableMap(handlers); } private  CRestAnnotations(); static Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> getMapping(); }
CRestAnnotations { public static Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> getMapping(){ Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> handlers = new HashMap<Class<? extends Annotation>, Class<? extends AnnotationHandler>>(); handlers.put(ConnectionTimeout.class, ConnectionTimeoutAnnotationHandler.class); handlers.put(Consumes.class, ConsumesAnnotationHandler.class); handlers.put(CookieParam.class, CookieParamAnnotationHandler.class); handlers.put(CookieParams.class, CookieParamsAnnotationHandler.class); handlers.put(DELETE.class, DELETEAnnotationHandler.class); handlers.put(Encoded.class, EncodedAnnotationHandler.class); handlers.put(Encoding.class, EncodingAnnotationHandler.class); handlers.put(EndPoint.class, EndPointAnnotationHandler.class); handlers.put(EntityWriter.class, EntityWriterAnnotationHandler.class); handlers.put(ErrorHandler.class, ErrorHandlerAnnotationHandler.class); handlers.put(FormParam.class, FormParamAnnotationHandler.class); handlers.put(FormParams.class, FormParamsAnnotationHandler.class); handlers.put(GET.class, GETAnnotationHandler.class); handlers.put(HEAD.class, HEADAnnotationHandler.class); handlers.put(HeaderParam.class, HeaderParamAnnotationHandler.class); handlers.put(HeaderParams.class, HeaderParamsAnnotationHandler.class); handlers.put(ListSeparator.class, ListSeparatorAnnotationHandler.class); handlers.put(MatrixParam.class, MatrixParamAnnotationHandler.class); handlers.put(MatrixParams.class, MatrixParamsAnnotationHandler.class); handlers.put(MultiPartParam.class, MultiPartParamAnnotationHandler.class); handlers.put(MultiPartParams.class, MultiPartParamsAnnotationHandler.class); handlers.put(OPTIONS.class, OPTIONSAnnotationHandler.class); handlers.put(Path.class, PathAnnotationHandler.class); handlers.put(PathParam.class, PathParamAnnotationHandler.class); handlers.put(PathParams.class, PathParamsAnnotationHandler.class); handlers.put(POST.class, POSTAnnotationHandler.class); handlers.put(Produces.class, ProducesAnnotationHandler.class); handlers.put(PUT.class, PUTAnnotationHandler.class); handlers.put(QueryParam.class, QueryParamAnnotationHandler.class); handlers.put(QueryParams.class, QueryParamsAnnotationHandler.class); handlers.put(RequestInterceptor.class, RequestInterceptorAnnotationHandler.class); handlers.put(ResponseHandler.class, ResponseHandlerAnnotationHandler.class); handlers.put(RetryHandler.class, RetryHandlerAnnotationHandler.class); handlers.put(Serializer.class, SerializerAnnotationHandler.class); handlers.put(SocketTimeout.class, SocketTimeoutAnnotationHandler.class); handlers.put(Deserializer.class, DeserializerAnnotationHandler.class); return Collections.unmodifiableMap(handlers); } private  CRestAnnotations(); static Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> getMapping();  }