@Test public void testGetDepreciationRate() { final Double depreciationRate = assetCommonService.getDepreciationRate(Double.valueOf("18.9745")); assertEquals(Double.valueOf("18.97"), depreciationRate); }
public Double getDepreciationRate(final Double depreciationRate) { if (depreciationRate != null) { final Double deprRate = Math.round(depreciationRate * 100.0) / 100.0; log.debug("Depreciation Rate ::" + deprRate); return deprRate; } else return null; }
AssetCommonService { public Double getDepreciationRate(final Double depreciationRate) { if (depreciationRate != null) { final Double deprRate = Math.round(depreciationRate * 100.0) / 100.0; log.debug("Depreciation Rate ::" + deprRate); return deprRate; } else return null; } }
AssetCommonService { public Double getDepreciationRate(final Double depreciationRate) { if (depreciationRate != null) { final Double deprRate = Math.round(depreciationRate * 100.0) / 100.0; log.debug("Depreciation Rate ::" + deprRate); return deprRate; } else return null; }  }
AssetCommonService { public Double getDepreciationRate(final Double depreciationRate) { if (depreciationRate != null) { final Double deprRate = Math.round(depreciationRate * 100.0) / 100.0; log.debug("Depreciation Rate ::" + deprRate); return deprRate; } else return null; }  ErrorResponse populateErrors(final BindingResult errors); Double getDepreciationRate(final Double depreciationRate); void validateDepreciationRateValue(final Double depreciationRate); AuditDetails getAuditDetails(final RequestInfo requestInfo); String getCode(final String codeFormat, final Sequence sequence); Long getNextId(final Sequence sequence); }
AssetCommonService { public Double getDepreciationRate(final Double depreciationRate) { if (depreciationRate != null) { final Double deprRate = Math.round(depreciationRate * 100.0) / 100.0; log.debug("Depreciation Rate ::" + deprRate); return deprRate; } else return null; }  ErrorResponse populateErrors(final BindingResult errors); Double getDepreciationRate(final Double depreciationRate); void validateDepreciationRateValue(final Double depreciationRate); AuditDetails getAuditDetails(final RequestInfo requestInfo); String getCode(final String codeFormat, final Sequence sequence); Long getNextId(final Sequence sequence);  }