package org.knowm.xchange.taurus.dto.trade; import static org.fest.assertions.api.Assertions.assertThat; import java.io.IOException; import java.io.InputStream; import org.junit.Test; import com.fasterxml.jackson.databind.ObjectMapper; /** * Test Transaction[] JSON parsing */ public class CancelOrderJSONTest { @Test public void testUnmarshal() throws IOException { // Read in the JSON from the example resources InputStream is = CancelOrderJSONTest.class.getResourceAsStream("/trade/example-cancel-order.json"); // Use Jackson to parse it ObjectMapper mapper = new ObjectMapper(); Boolean result = mapper.readValue(is, Boolean.class); assertThat(result).isTrue(); } }