agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/queue/SubmissionWatchTest.java
/**
     * Test job submission using all combinations of protocols and schedulers
     * 
     * @param job
     * @param shouldThrowException
     * @param message
     */
Test job submission using all combinations of protocols and schedulers


Test job submission using all combinations of protocols and schedulers
@Test(dataProvider = "submitProvider", enabled=false)
    public void submit(Job job, boolean shouldThrowException, String message) 
    throws Exception
    {
        try {
            JobDao.persist(job);
            stageJobInputs(job);
            genericRemoteSubmissionTestCase(job, JobStatusType.QUEUED, message, shouldThrowException);
        }
        finally {
            try { 
                JobDao.refresh(job); 
                JobDao.delete(job); 
            } catch (Exception e) {}
        }
    }
@ Test ( dataProvider = "submitProvider" , enabled = false ) public void submit ( Job job , boolean shouldThrowException , String message ) throws Exception { try { JobDao . persist ( job ) ; stageJobInputs ( job ) ; genericRemoteSubmissionTestCase ( job , JobStatusType . QUEUED , message , shouldThrowException ) ; } finally { try { JobDao . refresh ( job ) ; JobDao . delete ( job ) ; } catch ( Exception e ) { } } }
Test job submission using all combinations of protocols and schedulers
Test job submission using all combinations of protocols and schedulers