options = SessionOptions.Builder .withAuthToken(_apiKey) .withRESTDataProvider(restDataProvider) .withRetryPolicy(retryPolicy) .build(); options = SessionOptions.Builder .withoutAuthToken() .withRESTDataProvider(restDataProvider) .withRetryPolicy(retryPolicy) .build();
private QuandlSession getTestSession(final String expectedURL) { return QuandlSession.create( SessionOptions.Builder.withoutAuthToken() .withRESTDataProvider( new TestRESTDataProvider(expectedURL)) .build()); }