Exemplo n.º 1
0
 @Test
 public void testGetProduct() {
   assertNotNull("Product", spyStock.getProduct());
   verify(spyStock, times(1)).getProduct();
 }
Exemplo n.º 2
0
 @Test
 public void testSetProduct() {
   spyStock.setProduct(null);
   assertNull("Product", spyStock.getProduct());
   verify(spyStock, times(1)).setProduct(null);
 }