コード例 #1
0
 @Test
 public void testRemoveLimitingResourceQueue() throws InstanceNotFoundException {
   LimitingResourceQueue limitingResourceQueue = createValidLimitingResourceQueue();
   limitingResourceQueueDAO.save(limitingResourceQueue);
   limitingResourceQueueDAO.remove(limitingResourceQueue.getId());
   assertFalse(limitingResourceQueueDAO.exists(limitingResourceQueue.getId()));
 }
コード例 #2
0
 @Test
 public void testSaveLimitingResourceQueue() {
   LimitingResourceQueue limitingResourceQueue = createValidLimitingResourceQueue();
   limitingResourceQueueDAO.save(limitingResourceQueue);
   assertTrue(limitingResourceQueueDAO.exists(limitingResourceQueue.getId()));
 }