Exemple #1
0
 @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");
 }
Exemple #2
0
 /**
  * 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);
 }