1 package org.oxerr.okcoin.rest.dto; 2 3 import static org.junit.Assert.assertEquals; 4 5 import java.io.IOException; 6 7 import org.junit.Test; 8 9 public class BorrowResultTest extends UnmarshalTest { 10 11 @Test 12 public void testBorrowMoney() throws IOException { 13 BorrowResult borrowOrderResult = readValue("borrow_money.json", BorrowResult.class); 14 assertEquals(312L, borrowOrderResult.getBorrowId()); 15 } 16 17 @Test 18 public void testCancelBorrow() throws IOException { 19 BorrowResult borrowOrderResult = readValue("cancel_borrow.json", BorrowResult.class); 20 assertEquals(312L, borrowOrderResult.getBorrowId()); 21 } 22 23 @Test 24 public void testRepayment() throws IOException { 25 BorrowResult borrowOrderResult = readValue("repayment.json", BorrowResult.class); 26 assertEquals(613388L, borrowOrderResult.getBorrowId()); 27 } 28 29 }