@Test public void testGetFavorite() { RestInvocations.loadMetadata(handler, "favorite"); RestInvocations.loadMetadata(handler, "defect"); RestInvocations.loadMetadata(handler, "release-backlog-item"); handler.addRequest(false, "GET", "/qcbin/rest/domains/domain/projects/project/favorites?fields=&query={id[1014]}&order-by={}", 200) .content("favoritesServiceTest_favorite.xml"); EntityQuery query = favoritesService.getFavorite(1014, "defect"); checkQuery(query); }
public EntityQuery getFavorite(int id, String entityType) { return getValue(new Favorite(id, entityType)); }
FavoritesService extends AbstractCachingService<FavoritesService.Favorite, EntityQuery, AbstractCachingService.Callback<EntityQuery>> { public EntityQuery getFavorite(int id, String entityType) { return getValue(new Favorite(id, entityType)); } }
FavoritesService extends AbstractCachingService<FavoritesService.Favorite, EntityQuery, AbstractCachingService.Callback<EntityQuery>> { public EntityQuery getFavorite(int id, String entityType) { return getValue(new Favorite(id, entityType)); } FavoritesService(Project project, EntityService entityService, AliProjectConfiguration projConf, MetadataService metadataService, FilterManager filterManager, RestService restService); }
FavoritesService extends AbstractCachingService<FavoritesService.Favorite, EntityQuery, AbstractCachingService.Callback<EntityQuery>> { public EntityQuery getFavorite(int id, String entityType) { return getValue(new Favorite(id, entityType)); } FavoritesService(Project project, EntityService entityService, AliProjectConfiguration projConf, MetadataService metadataService, FilterManager filterManager, RestService restService); EntityQuery getFavorite(int id, String entityType); EntityQuery getStoredQuery(String entityType, String queryNameAndKind); List<EntityQuery> getAvailableQueries(String entityType); void unresolveQuery(EntityQuery query); }
FavoritesService extends AbstractCachingService<FavoritesService.Favorite, EntityQuery, AbstractCachingService.Callback<EntityQuery>> { public EntityQuery getFavorite(int id, String entityType) { return getValue(new Favorite(id, entityType)); } FavoritesService(Project project, EntityService entityService, AliProjectConfiguration projConf, MetadataService metadataService, FilterManager filterManager, RestService restService); EntityQuery getFavorite(int id, String entityType); EntityQuery getStoredQuery(String entityType, String queryNameAndKind); List<EntityQuery> getAvailableQueries(String entityType); void unresolveQuery(EntityQuery query);  }