/** * Test to verify that the refresh of queue properties fails if queues are * removed. * * @throws Exception */ @Test public void testRefreshWithRemovedQueues() throws Exception { JobQueueInfo[] queues = getSimpleQueueHierarchy(); // write the configuration file writeQueueConfigurationFile( QUEUES_CONFIG_FILE_PATH, new JobQueueInfo[] { queues[0] }); QueueManager qManager = new QueueManager(); // Remove queue[2] JobQueueInfo q2 = queues[2]; queues[0].removeChild(q2); // Rewrite the configuration file writeQueueConfigurationFile( QUEUES_CONFIG_FILE_PATH, new JobQueueInfo[] { queues[0] }); testRefreshFailureWithChangeOfHierarchy(qManager); }