@Test public void shouldGetAll() { service.getAll(); verify(repository).getAll(); }
public List<ProductForm> getAll() { return repository.getAll(); }
ProductFormService { public List<ProductForm> getAll() { return repository.getAll(); } }
ProductFormService { public List<ProductForm> getAll() { return repository.getAll(); } @Autowired  ProductFormService(ProductFormRepository productFormRepository); }
ProductFormService { public List<ProductForm> getAll() { return repository.getAll(); } @Autowired  ProductFormService(ProductFormRepository productFormRepository); List<ProductForm> getAll(); ProductForm getExisting(ProductForm pf); ProductForm validateAndReturn(ProductForm form); void save(ProductForm pf); }
ProductFormService { public List<ProductForm> getAll() { return repository.getAll(); } @Autowired  ProductFormService(ProductFormRepository productFormRepository); List<ProductForm> getAll(); ProductForm getExisting(ProductForm pf); ProductForm validateAndReturn(ProductForm form); void save(ProductForm pf);  }