Skip to content

Commit

Permalink
update timeseries tests
Browse files Browse the repository at this point in the history
  • Loading branch information
crazzyghost committed Oct 23, 2019
1 parent 933db51 commit 9d1cbca
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/test/java/TestTimeSeries.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,31 +112,6 @@ public void timeSeriesWeekly() throws InterruptedException {
assertNotNull(response.get());
}

@Test
public void timeSeriesWeeklyAdjusted() throws InterruptedException {

AtomicReference<TimeSeriesResponse> response = new AtomicReference<>();

Fetcher.FailureCallback failureCallback = (e) -> lock.countDown();

Fetcher.SuccessCallback<TimeSeriesResponse> successCallback = (e) -> {
lock.countDown();
response.set(e);
};

AlphaVantage.api()
.timeSeries()
.weekly()
.adjusted()
.forSymbol("GOOGL")
.onFailure(failureCallback)
.onSuccess(successCallback)
.fetch();

lock.await(10, TimeUnit.SECONDS);
assertNotNull(response.get());
}

@Test
public void timeSeriesIntraday() throws InterruptedException {

Expand Down

0 comments on commit 9d1cbca

Please sign in to comment.