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