@Test public void testUpdate() { final Asset asset = getAsset(); final AssetRequest assetRequest = new AssetRequest(); assetRequest.setAsset(asset); final List<Asset> assets = new ArrayList<>(); assets.add(asset); final AssetResponse assetResponse = new AssetResponse(); assetResponse.setResponseInfo(null); assetResponse.setAssets(assets); when(assetRepository.update(any(AssetRequest.class))).thenReturn(asset); assertTrue(asset.equals(assetService.update(assetRequest))); }
public Asset update(final AssetRequest assetRequest) { return assetRepository.update(assetRequest); }
AssetService { public Asset update(final AssetRequest assetRequest) { return assetRepository.update(assetRequest); } }
AssetService { public Asset update(final AssetRequest assetRequest) { return assetRepository.update(assetRequest); }  }
AssetService { public Asset update(final AssetRequest assetRequest) { return assetRepository.update(assetRequest); }  List<Asset> getAssets(final AssetCriteria searchAsset, final RequestInfo requestInfo); Asset create(final AssetRequest assetRequest); Asset createAsset(final AssetRequest assetRequest); Asset update(final AssetRequest assetRequest); Asset updateAsset(final AssetRequest assetRequest); Asset getAsset(final String tenantId, final Long assetId, final RequestInfo requestInfo); Map<String, Object> getPaginatedAssets(AssetCriteria assetCriteria, RequestInfo requestInfo); }
AssetService { public Asset update(final AssetRequest assetRequest) { return assetRepository.update(assetRequest); }  List<Asset> getAssets(final AssetCriteria searchAsset, final RequestInfo requestInfo); Asset create(final AssetRequest assetRequest); Asset createAsset(final AssetRequest assetRequest); Asset update(final AssetRequest assetRequest); Asset updateAsset(final AssetRequest assetRequest); Asset getAsset(final String tenantId, final Long assetId, final RequestInfo requestInfo); Map<String, Object> getPaginatedAssets(AssetCriteria assetCriteria, RequestInfo requestInfo);  }