Fix tests

This commit is contained in:
jamesagnew 2016-06-20 07:52:44 -04:00
parent 2e8c20dc83
commit f4c6f09f08
2 changed files with 2 additions and 1 deletions

View File

@ -57,6 +57,7 @@ public class ApacheRestfulClientFactory extends RestfulClientFactory {
* Constructor
*/
public ApacheRestfulClientFactory() {
super();
}
/**

View File

@ -103,12 +103,12 @@ public class GenericClientDstu2Test {
public void before() {
myHttpClient = mock(HttpClient.class, new ReturnsDeepStubs());
ourCtx.setRestfulClientFactory(new ApacheRestfulClientFactory(ourCtx));
ourCtx.getRestfulClientFactory().setHttpClient(myHttpClient);
ourCtx.getRestfulClientFactory().setConnectionRequestTimeout(10000);
ourCtx.getRestfulClientFactory().setConnectTimeout(10000);
ourCtx.getRestfulClientFactory().setPoolMaxPerRoute(100);
ourCtx.getRestfulClientFactory().setPoolMaxTotal(100);
ourCtx.getRestfulClientFactory().setHttpClient(myHttpClient);
ourCtx.getRestfulClientFactory().setServerValidationMode(ServerValidationModeEnum.NEVER);
myHttpResponse = mock(HttpResponse.class, new ReturnsDeepStubs());
myResponseCount = 0;