@Test
 public void getOriginTransaction() throws Exception {
   CashMoneyRestockTransactionImpl cashMoneyRestockTransaction =
       mock(CashMoneyRestockTransactionImpl.class);
   when(cashMoneyRestockTransaction.getOriginTransaction()).thenReturn(originTransaction);
   assertThat(cashMoneyRestockTransaction.getOriginTransaction()).isNotNull();
 }
Пример #2
0
 @Test
 public void getAmount() throws Exception {
   CashMoneyRestockTransactionImpl cashMoneyRestockTransaction =
       mock(CashMoneyRestockTransactionImpl.class);
   when(cashMoneyRestockTransaction.getAmount()).thenReturn(BigDecimal.ONE);
   assertThat(cashMoneyRestockTransaction.getAmount()).isNotNull();
 }