Skip to content

Commit

Permalink
[CoinbasePro] Update test after changing type String to Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
makarid committed Aug 21, 2023
1 parent 0499957 commit 6074e44
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import java.io.IOException;
import java.io.InputStream;
import org.junit.Test;
import org.knowm.xchange.coinbasepro.dto.trade.CoinbaseProFill.Liquidity;
import org.knowm.xchange.coinbasepro.dto.trade.CoinbaseProFill.Side;
import si.mazi.rescu.serialization.jackson.DefaultJacksonObjectMapperFactory;
import si.mazi.rescu.serialization.jackson.JacksonObjectMapperFactory;

Expand All @@ -31,9 +33,9 @@ public void unmarshalTest() throws IOException {
assertThat(fill.getSize()).isEqualTo("0.01000000");
assertThat(fill.getOrderId()).isEqualTo("b4b3bbb1-e0e3-4532-9413-23123448ce35");
assertThat(fill.getCreatedAt()).isEqualTo("2017-05-01T07:31:50.243Z");
assertThat(fill.getLiquidity()).isEqualTo("T");
assertThat(fill.getLiquidity()).isEqualTo(Liquidity.T);
assertThat(fill.getFee()).isEqualTo("0.0000017745000000");
assertThat(fill.isSettled()).isEqualTo(true);
assertThat(fill.getSide()).isEqualTo("buy");
assertThat(fill.isSettled()).isTrue();
assertThat(fill.getSide()).isEqualTo(Side.buy);
}
}

0 comments on commit 6074e44

Please sign in to comment.