@Test public void getAllAssetGroupNamesTest() throws Exception { Collection<String> allAssetGroupNames = Lists.newArrayList(); allAssetGroupNames.add("GroupName123"); when(assetGroupRepository.getAllAssetGroupNames()).thenReturn(allAssetGroupNames); assertThat(assetGroupService.getAllAssetGroupNames(), is(notNullValue())); }
@Override public Collection<String> getAllAssetGroupNames() { return assetGroupRepository.getAllAssetGroupNames(); }
AssetGroupServiceImpl implements AssetGroupService { @Override public Collection<String> getAllAssetGroupNames() { return assetGroupRepository.getAllAssetGroupNames(); } }
AssetGroupServiceImpl implements AssetGroupService { @Override public Collection<String> getAllAssetGroupNames() { return assetGroupRepository.getAllAssetGroupNames(); }  }
AssetGroupServiceImpl implements AssetGroupService { @Override public Collection<String> getAllAssetGroupNames() { return assetGroupRepository.getAllAssetGroupNames(); }  @Override Collection<String> getAllAssetGroupNames(); @Override Page<AssetGroupView> getAllAssetGroupDetails(final String searchTerm, final int page, final int size); @Override AssetGroupDetails findByGroupName(String groupName); @SuppressWarnings("unchecked") @Override String updateAssetGroupDetails(final CreateUpdateAssetGroupDetails updateAssetGroupDetails, final String userId); @Override String createAssetGroupDetails(final CreateUpdateAssetGroupDetails createAssetGroupDetails, final String userId); @Override UpdateAssetGroupDetails getAssetGroupDetailsByIdAndDataSource(final String assetGroupId, final String dataSource); @Override String deleteAssetGroup(final DeleteAssetGroupRequest assetGroupDetails, final String userId); }
AssetGroupServiceImpl implements AssetGroupService { @Override public Collection<String> getAllAssetGroupNames() { return assetGroupRepository.getAllAssetGroupNames(); }  @Override Collection<String> getAllAssetGroupNames(); @Override Page<AssetGroupView> getAllAssetGroupDetails(final String searchTerm, final int page, final int size); @Override AssetGroupDetails findByGroupName(String groupName); @SuppressWarnings("unchecked") @Override String updateAssetGroupDetails(final CreateUpdateAssetGroupDetails updateAssetGroupDetails, final String userId); @Override String createAssetGroupDetails(final CreateUpdateAssetGroupDetails createAssetGroupDetails, final String userId); @Override UpdateAssetGroupDetails getAssetGroupDetailsByIdAndDataSource(final String assetGroupId, final String dataSource); @Override String deleteAssetGroup(final DeleteAssetGroupRequest assetGroupDetails, final String userId);  }