@Test public void shouldSaveImportedProductCategory() throws Exception { ProductCategoryService productCategoryService = mock(ProductCategoryService.class); ProductCategory productCategory = new ProductCategory(); new ProductCategoryPersistenceHandler(productCategoryService).execute(productCategory, 0, new AuditFields(1L, null)); verify(productCategoryService).save(productCategory); }
@Override protected void save(BaseModel modelClass) { productCategoryService.save((ProductCategory) modelClass); }
ProductCategoryPersistenceHandler extends AbstractModelPersistenceHandler { @Override protected void save(BaseModel modelClass) { productCategoryService.save((ProductCategory) modelClass); } }
ProductCategoryPersistenceHandler extends AbstractModelPersistenceHandler { @Override protected void save(BaseModel modelClass) { productCategoryService.save((ProductCategory) modelClass); } @Autowired  ProductCategoryPersistenceHandler(ProductCategoryService productCategoryService); }
ProductCategoryPersistenceHandler extends AbstractModelPersistenceHandler { @Override protected void save(BaseModel modelClass) { productCategoryService.save((ProductCategory) modelClass); } @Autowired  ProductCategoryPersistenceHandler(ProductCategoryService productCategoryService); @Override String getMessageKey(); }
ProductCategoryPersistenceHandler extends AbstractModelPersistenceHandler { @Override protected void save(BaseModel modelClass) { productCategoryService.save((ProductCategory) modelClass); } @Autowired  ProductCategoryPersistenceHandler(ProductCategoryService productCategoryService); @Override String getMessageKey();  }