DefaultMethodConfigBuilder extends ConfigBuilder implements MethodConfigBuilder { public MethodConfigBuilder setParamsListSeparator(String listSeparator) { for (ParamConfigBuilder b : methodParamConfigBuilders) { b.setListSeparator(listSeparator); } return this; } DefaultMethodConfigBuilder(InterfaceConfigBuilder parent, Method method, CRestConfig crestConfig, ComponentRegistry<String,Deserializer> mimeDeserializerRegistry, ComponentRegistry<Class<?>, Serializer> classSerializerRegistry); MethodConfig build(); ParamConfigBuilder startParamConfig(int index); ParamConfigBuilder startExtraParamConfig(); MethodConfigBuilder setConsumes(String... mimeTypes); MethodConfigBuilder setCharset(Charset charset); MethodConfigBuilder setProduces(String contentType); MethodConfigBuilder appendPath(String path); MethodConfigBuilder setEndPoint(String endPoint); MethodConfigBuilder setType(MethodType meth); MethodConfigBuilder setSocketTimeout(int socketTimeout); MethodConfigBuilder setConnectionTimeout(int connectionTimeout); MethodConfigBuilder setDeserializer(Class<? extends Deserializer> deserializerClass); MethodConfigBuilder setRequestInterceptor(Class<? extends RequestInterceptor> requestInterceptorClass); MethodConfigBuilder setResponseHandler(Class<? extends ResponseHandler> responseHandlerClass); MethodConfigBuilder setErrorHandler(Class<? extends ErrorHandler> errorHandlerClass); MethodConfigBuilder setRetryHandler(Class<? extends RetryHandler> retryHandlerClass); MethodConfigBuilder setEntityWriter(Class<? extends EntityWriter> entityWriterClass); MethodConfigBuilder setParamsSerializer(Class<? extends Serializer> serializerClass); MethodConfigBuilder setParamsEncoded(boolean encoded); MethodConfigBuilder setParamsListSeparator(String listSeparator); @Override String toString();  }
@Test public void setParamsListSeparatorShouldSetListSeparatorOnAllParamConfigs() throws Exception { MethodConfigBuilder toTest = newToTest(); assertSame(toTest, toTest.setParamsListSeparator("-")); verify(mockParamConfigBuilder1).setListSeparator("-"); verify(mockParamConfigBuilder2).setListSeparator("-"); }