Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Correct failing unit test data

  • Loading branch information...
commit 495d1616c3fca1dd397559c02aa4cd07dd27a2f4 1 parent 1d032ba
Kevin Sawicki authored
12 lib/src/test/java/com/github/kevinsawicki/stocks/StockQuoteRequestTest.java
@@ -55,14 +55,14 @@ private static Date date(String date) {
55 55 public void singleDay() throws Exception {
56 56 StockQuoteRequest request = new StockQuoteRequest();
57 57 request.setSymbol("tr");
58   - Date date = date("2011-12-23");
  58 + Date date = date("2011-12-22");
59 59 request.setStartDate(date).setEndDate(date);
60 60 assertTrue(request.next());
61   - assertEquals(23.85f, request.getOpen(), 0);
62   - assertEquals(23.91f, request.getHigh(), 0);
63   - assertEquals(23.70f, request.getLow(), 0);
64   - assertEquals(23.74f, request.getClose(), 0);
65   - assertEquals(52905l, request.getVolume());
  61 + assertEquals(23.92f, request.getOpen(), 0);
  62 + assertEquals(23.95f, request.getHigh(), 0);
  63 + assertEquals(23.64f, request.getLow(), 0);
  64 + assertEquals(23.86f, request.getClose(), 0);
  65 + assertEquals(57518l, request.getVolume());
66 66 assertFalse(request.next());
67 67 }
68 68 }

0 comments on commit 495d161

Please sign in to comment.
Something went wrong with that request. Please try again.