@Test public void getTotalAsseCountByTargetTypeTest() throws Exception { when(repository.getTotalAssetCountByTargetType(anyString())) .thenReturn(5000l); assertThat(projectionServiceImpl.getTotalAsseCountByTargetType("onpremserver"), is(notNullValue())); }
public Long getTotalAsseCountByTargetType(String targetType) throws ServiceException { try { return repository.getTotalAssetCountByTargetType(targetType); } catch (DataException e) { logger.error("Error @ getTotalAsseCountByTargetType", e); throw new ServiceException(e); } }
ProjectionServiceImpl implements ProjectionService, Constants { public Long getTotalAsseCountByTargetType(String targetType) throws ServiceException { try { return repository.getTotalAssetCountByTargetType(targetType); } catch (DataException e) { logger.error("Error @ getTotalAsseCountByTargetType", e); throw new ServiceException(e); } } }
ProjectionServiceImpl implements ProjectionService, Constants { public Long getTotalAsseCountByTargetType(String targetType) throws ServiceException { try { return repository.getTotalAssetCountByTargetType(targetType); } catch (DataException e) { logger.error("Error @ getTotalAsseCountByTargetType", e); throw new ServiceException(e); } }  }
ProjectionServiceImpl implements ProjectionService, Constants { public Long getTotalAsseCountByTargetType(String targetType) throws ServiceException { try { return repository.getTotalAssetCountByTargetType(targetType); } catch (DataException e) { logger.error("Error @ getTotalAsseCountByTargetType", e); throw new ServiceException(e); } }  @Override Boolean updateProjection(ProjectionRequest projectionRequest); @Override ProjectionResponse getProjection(String resourceType, int year,
            int quarter); Long getTotalAsseCountByTargetType(String targetType); @Override ProjectionResponse getPatchingAndProjectionByWeek(String assetGroup); @Override PatchingProgressResponse getPatchingProgressByDirector(
            String assetGroup); @Override PatchingProgressResponse patchProgByExSponsor(String assetGroup); }
ProjectionServiceImpl implements ProjectionService, Constants { public Long getTotalAsseCountByTargetType(String targetType) throws ServiceException { try { return repository.getTotalAssetCountByTargetType(targetType); } catch (DataException e) { logger.error("Error @ getTotalAsseCountByTargetType", e); throw new ServiceException(e); } }  @Override Boolean updateProjection(ProjectionRequest projectionRequest); @Override ProjectionResponse getProjection(String resourceType, int year,
            int quarter); Long getTotalAsseCountByTargetType(String targetType); @Override ProjectionResponse getPatchingAndProjectionByWeek(String assetGroup); @Override PatchingProgressResponse getPatchingProgressByDirector(
            String assetGroup); @Override PatchingProgressResponse patchProgByExSponsor(String assetGroup);  }