DefaultInterfaceConfigBuilder extends ConfigBuilder implements InterfaceConfigBuilder { public InterfaceConfigBuilder setMethodsRetryHandler(Class<? extends RetryHandler> retryHandlerClass) { for (MethodConfigBuilder b : methodBuilders.values()) { b.setRetryHandler(retryHandlerClass); } return this; } DefaultInterfaceConfigBuilder(Class interfaze, CRestConfig crestConfig, ComponentRegistry<String,Deserializer> mimeDeserializerRegistry, ComponentRegistry<Class<?>, Serializer> classSerializerRegistry); InterfaceConfig build(); MethodConfigBuilder startMethodConfig(Method meth); InterfaceConfigBuilder setMethodsCharset(Charset charset); InterfaceConfigBuilder setMethodsSocketTimeout(int socketTimeout); InterfaceConfigBuilder setMethodsConnectionTimeout(int connectionTimeout); InterfaceConfigBuilder setMethodsRequestInterceptor(Class<? extends RequestInterceptor> requestInterceptorClass); InterfaceConfigBuilder setMethodsResponseHandler(Class<? extends ResponseHandler> responseHandlerClass); InterfaceConfigBuilder setMethodsErrorHandler(Class<? extends ErrorHandler> errorHandlerClass); InterfaceConfigBuilder setMethodsRetryHandler(Class<? extends RetryHandler> retryHandlerClass); InterfaceConfigBuilder setMethodsEntityWriter(Class<? extends EntityWriter> entityWriterClass); InterfaceConfigBuilder setMethodsConsumes(String... mimeTypes); InterfaceConfigBuilder setMethodsDeserializer(Class<? extends Deserializer> deserializerClass); InterfaceConfigBuilder setMethodsProduces(String contentType); InterfaceConfigBuilder setMethodsType(MethodType meth); InterfaceConfigBuilder appendMethodsPath(String path); InterfaceConfigBuilder setMethodsEndPoint(String endPoint); ParamConfigBuilder startMethodsExtraParamConfig(); InterfaceConfigBuilder setParamsSerializer(Class<? extends Serializer> paramSerializerClass); InterfaceConfigBuilder setParamsEncoded(boolean encoded); InterfaceConfigBuilder setParamsListSeparator(String separator); @Override String toString();  }
@Test public void setMethodsRetryHandlerShouldSetRetryHandlerOnAllMethodConfigs(){ assertSame(toTest, toTest.setMethodsRetryHandler(RetryHandler.class)); verify(mockM1MethodConfigBuilder).setRetryHandler(RetryHandler.class); verify(mockM2MethodConfigBuilder).setRetryHandler(RetryHandler.class); }