agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/queue/actions/MonitoringActionTest.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 = "monitorProvider", enabled=true)
    public void monitor(Job job, boolean shouldThrowException, String message) 
    throws Exception
    {
        try {
            JobDao.persist(job);
            genericRemoteMonitoringTestCase(job, JobStatusType.CLEANING_UP, message, shouldThrowException);
        }
        finally {
            try { JobDao.delete(job); } catch (Exception e) {}
        }
    }
@ Test ( dataProvider = "monitorProvider" , enabled = true ) public void monitor ( Job job , boolean shouldThrowException , String message ) throws Exception { try { JobDao . persist ( job ) ; genericRemoteMonitoringTestCase ( job , JobStatusType . CLEANING_UP , message , shouldThrowException ) ; } finally { try { 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