@Test public void testUpdate() { AssetCategoryResponse assetCategoryResponse = null; try { assetCategoryResponse = getAssetCategoryResponse("assetcategoryupdateresponseservice.json"); } catch (final Exception e) { e.printStackTrace(); fail(); } final AssetCategoryRequest assetCategoryRequest = new AssetCategoryRequest(); assetCategoryRequest.setRequestInfo(null); assetCategoryRequest.setAssetCategory(getAssetCategory()); when(assetCategoryRepository.update(any(AssetCategoryRequest.class))).thenReturn(getAssetCategory()); assetCategoryService.update(Matchers.any(AssetCategoryRequest.class)); assertEquals(assetCategoryResponse.getAssetCategory().get(0).toString(), assetCategoryRequest.getAssetCategory().toString()); }
public AssetCategory update(final AssetCategoryRequest assetCategoryRequest) { final AssetCategory assetCategory = assetCategoryRepository.update(assetCategoryRequest); return assetCategory; }
AssetCategoryService { public AssetCategory update(final AssetCategoryRequest assetCategoryRequest) { final AssetCategory assetCategory = assetCategoryRepository.update(assetCategoryRequest); return assetCategory; } }
AssetCategoryService { public AssetCategory update(final AssetCategoryRequest assetCategoryRequest) { final AssetCategory assetCategory = assetCategoryRepository.update(assetCategoryRequest); return assetCategory; }  }
AssetCategoryService { public AssetCategory update(final AssetCategoryRequest assetCategoryRequest) { final AssetCategory assetCategory = assetCategoryRepository.update(assetCategoryRequest); return assetCategory; }  List<AssetCategory> search(final AssetCategoryCriteria assetCategoryCriteria); void create(final AssetCategoryRequest assetCategoryRequest); AssetCategory createAssetCategory(final AssetCategoryRequest assetCategoryRequest); AssetCategory update(final AssetCategoryRequest assetCategoryRequest); AssetCategory updateAssetCategory(final AssetCategoryRequest assetCategoryRequest); }
AssetCategoryService { public AssetCategory update(final AssetCategoryRequest assetCategoryRequest) { final AssetCategory assetCategory = assetCategoryRepository.update(assetCategoryRequest); return assetCategory; }  List<AssetCategory> search(final AssetCategoryCriteria assetCategoryCriteria); void create(final AssetCategoryRequest assetCategoryRequest); AssetCategory createAssetCategory(final AssetCategoryRequest assetCategoryRequest); AssetCategory update(final AssetCategoryRequest assetCategoryRequest); AssetCategory updateAssetCategory(final AssetCategoryRequest assetCategoryRequest);  }