public void testJobSubmissionAndVerifyAllResults(String jobDescPath) throws Throwable {
   Job testJob = JobFactory.getFactory().createJob(jobDescPath);
   testJobSubmissionAndVerifyAllResults(testJob, jobDescPath);
 }
 /**
  * Creates and submit a job from an XML job descriptor, and check event related to this job
  * submission : 1/ job submitted event 2/ job passing from pending to running (with state set to
  * running). 3/ every task passing from pending to running (with state set to running). 4/ every
  * task passing from running to finished (with state set to finished). 5/ and finally job passing
  * from running to finished (with state set to finished). Then returns.
  *
  * <p>This is the simplest events sequence of a job submission. If you need to test specific event
  * or task states (failure, rescheduling etc, you must not use this helper and check events
  * sequence with waitForEvent**() functions.
  *
  * @param jobDescPath path to an XML job descriptor to submit
  * @return JobId, the job's identifier.
  * @throws Exception if an error occurs at job creation/submission, or during verification of
  *     events sequence.
  */
 public JobId testJobSubmission(String jobDescPath) throws Exception {
   Job jobToTest = JobFactory.getFactory().createJob(jobDescPath);
   return testJobSubmission(jobToTest);
 }
 public JobId submitJob(String jobDescPath) throws Exception {
   Job jobToSubmit = JobFactory.getFactory().createJob(jobDescPath);
   Scheduler userInt = getSchedulerInterface();
   return userInt.submit(jobToSubmit);
 }