Example #1
0
 @Test
 public void testGetQuantity() {
   assertNull("Quantity", spyStock.getQuantity());
   verify(spyStock, times(1)).getQuantity();
 }
Example #2
0
 @Test
 public void testSetQuantity() {
   spyStock.setQuantity(BigInteger.ZERO);
   assertEquals("Quantity", BigInteger.ZERO, spyStock.getQuantity());
   verify(spyStock, times(1)).setQuantity(any());
 }