@Test(timeout = 10000) public void testJobQueueChange() throws Exception { org.apache.hadoop.mapreduce.JobID jid = new JobID("001", 1); JobQueueChangeEvent test = new JobQueueChangeEvent(jid, "newqueue"); assertEquals(test.getJobId().toString(), jid.toString()); assertEquals(test.getJobQueueName(), "newqueue"); }
/** * simple test JobPriorityChangeEvent and JobPriorityChange * * @throws Exception */ @Test(timeout = 10000) public void testJobPriorityChange() throws Exception { org.apache.hadoop.mapreduce.JobID jid = new JobID("001", 1); JobPriorityChangeEvent test = new JobPriorityChangeEvent(jid, JobPriority.LOW); assertEquals(test.getJobId().toString(), jid.toString()); assertEquals(test.getPriority(), JobPriority.LOW); }