RangerTagResourceMapService extends RangerTagResourceMapServiceBase<XXTagResourceMap, RangerTagResourceMap> { public List<Long> getTagIdsForResourceId(Long resourceId) { List<Long> ret = daoMgr.getXXTagResourceMap().findTagIdsForResourceId(resourceId); return ret; } RangerTagResourceMapService(); @Override RangerTagResourceMap postCreate(XXTagResourceMap tagResMap); RangerTagResourceMap getPopulatedViewObject(XXTagResourceMap xObj); List<RangerTagResourceMap> getByTagId(Long tagId); List<RangerTagResourceMap> getByTagGuid(String tagGuid); List<RangerTagResourceMap> getByResourceId(Long resourceId); List<Long> getTagIdsForResourceId(Long resourceId); List<RangerTagResourceMap> getByResourceGuid(String resourceGuid); RangerTagResourceMap getByGuid(String guid); RangerTagResourceMap getByTagAndResourceId(Long tagId, Long resourceId); RangerTagResourceMap getByTagAndResourceGuid(String tagGuid, String resourceGuid); List<RangerTagResourceMap> getTagResourceMapsByServiceId(Long serviceId);  }
@Test public void test7GetTagIdsForResourceId() { Mockito.when(daoMgr.getXXTagResourceMap()).thenReturn(xXTagResourceMapDao); rangerTagResourceMapService.getTagIdsForResourceId(1L); }