agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/monitors/parsers/AbstractJobStatusResponseParserTest.java
/**
     * Verifies that a parsing a known test scheduler response shoudl result in the proper
     * {@link RemoteSchedulerJobStatus}.
     *
     * @param remoteJobId the remote job id to pass to the remote system
     * @param schedulerOutput the remote scheduler output to parse and test for job status
     * @param expectedRemoteSchedulerJobStatus the expected {@link RemoteSchedulerJobStatus} after parsing
     * @param message the message to use in the assertion check
     */
Verifies that a parsing a known test scheduler response shoudl result in the proper
RemoteSchedulerJobStatus.

@param remoteJobId the remote job id to pass to the remote system
@param schedulerOutput the remote scheduler output to parse and test for job status
@param expectedRemoteSchedulerJobStatus the expected  RemoteSchedulerJobStatus after parsing
@param message the message to use in the assertion check
Verifies that a parsing a known test scheduler response shoudl result in the proper RemoteSchedulerJobStatus . @param remoteJobId the remote job id to pass to the remote system @param schedulerOutput the remote scheduler output to parse and test for job status @param expectedRemoteSchedulerJobStatus the expected RemoteSchedulerJobStatus after parsing @param message the message to use in the assertion check
protected void _parseReturnsExpectedRemoteSchedulerJobStatus(String remoteJobId, String schedulerOutput, RemoteSchedulerJobStatus expectedRemoteSchedulerJobStatus, String message)
    {
        try {
            JobStatusResponseParser parser = getJobMonitorResponseParser();
            JobStatusResponse response = parser.parse(remoteJobId, schedulerOutput);
            Assert.assertEquals(response.getRemoteSchedulerJobStatus(), expectedRemoteSchedulerJobStatus, message);
        } catch (RemoteJobMonitorResponseParsingException | RemoteJobMonitorEmptyResponseException e) {
            Assert.fail("No exception should be thrown parsing scheduler output: " + schedulerOutput, e);
        }
    }
protected void _parseReturnsExpectedRemoteSchedulerJobStatus ( String remoteJobId , String schedulerOutput , RemoteSchedulerJobStatus expectedRemoteSchedulerJobStatus , String message ) { try { JobStatusResponseParser parser = getJobMonitorResponseParser ( ) ; JobStatusResponse response = parser . parse ( remoteJobId , schedulerOutput ) ; Assert . assertEquals ( response . getRemoteSchedulerJobStatus ( ) , expectedRemoteSchedulerJobStatus , message ) ; } catch ( RemoteJobMonitorResponseParsingException | RemoteJobMonitorEmptyResponseException e ) { Assert . fail ( "No exception should be thrown parsing scheduler output: " + schedulerOutput , e ) ; } }
Verifies that a parsing a known test scheduler response shoudl result in the proper
 {@link RemoteSchedulerJobStatus}.
Verifies that a parsing a known test scheduler response shoudl result in the proper { @link RemoteSchedulerJobStatus } .