@@ -0,0 +1,2458 @@
+/**%0A * Copyright (C) 2012 - 2014 Xeiam LLC http://xeiam.com%0A *%0A * Permission is hereby granted, free of charge, to any person obtaining a copy of%0A * this software and associated documentation files (the %22Software%22), to deal in%0A * the Software without restriction, including without limitation the rights to%0A * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies%0A * of the Software, and to permit persons to whom the Software is furnished to do%0A * so, subject to the following conditions:%0A *%0A * The above copyright notice and this permission notice shall be included in all%0A * copies or substantial portions of the Software.%0A *%0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0A * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,%0A * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE%0A * SOFTWARE.%0A */%0Apackage com.xeiam.xchange.bitstamp.service.marketdata;%0A%0Aimport static org.fest.assertions.api.Assertions.assertThat;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.math.BigDecimal;%0A%0Aimport org.junit.Test;%0A%0Aimport com.fasterxml.jackson.databind.ObjectMapper;%0Aimport com.xeiam.xchange.bitstamp.dto.marketdata.BitstampStreamingOrderBook;%0A%0A/**%0A * Test BitStamp Stream Depth JSON parsing%0A */%0Apublic class StreamDepthJSONTest %7B%0A%0A  @Test%0A  public void testUnmarshal() throws IOException %7B%0A%0A    // Read in the JSON from the example resources%0A    InputStream is = StreamDepthJSONTest.class.getResourceAsStream(%22/marketdata/example-stream-depth-data.json%22);%0A%0A    // Use Jackson to parse it%0A    ObjectMapper mapper = new ObjectMapper();%0A    BitstampStreamingOrderBook orderBook = mapper.readValue(is, BitstampStreamingOrderBook.class);%0A%0A    // Verify that the example data was unmarshalled correctly%0A    assertThat(orderBook.getBids().get(0).get(0)).isEqualTo(new BigDecimal(%22123.09%22));%0A    assertThat(orderBook.getBids().get(0).get(1)).isEqualTo(new BigDecimal(%220.16248274%22));%0A    assertThat(orderBook.getAsks().get(0).get(0)).isEqualTo(new BigDecimal(%22123.39%22));%0A    assertThat(orderBook.getAsks().get(0).get(1)).isEqualTo(new BigDecimal(%220.60466812%22));%0A    assertThat(orderBook.getTimestamp() %3E 0);%0A  %7D%0A%7D%0A

Add Bitstamp stream depth test case