private long getStoreID(FeedbackStoreManager feedbackStoreManager) throws Exception { SortedSet<Long> allFeedbackStoreIDs = feedbackStoreManager.getAllFeedbackStoreIDs(); assertEquals(allFeedbackStoreIDs.size(), 1); return allFeedbackStoreIDs.first(); }
@Test public void testExceptionHandling() throws Exception { FeedbackStoreManager feedbackStoreManager = new FeedbackStoreManager(m_agentContext, "test"); feedbackStoreManager.forceCreateNewStore(); SortedSet<Long> allFeedbackStoreIDs = feedbackStoreManager.getAllFeedbackStoreIDs(); assertEquals(allFeedbackStoreIDs.size(), 2); }
SortedSet<Long> storeIDs = m_storeManager.getAllFeedbackStoreIDs(); for (Long storeID : storeIDs) { URL queryURL = new URL(serverURL, m_name + "/" + COMMAND_QUERY + "?" + PARAMETER_TARGETID + "=" + identification + "&" + PARAMETER_LOGID + "=" + storeID);