agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/monitors/parsers/AbstractJobStatusResponseParserTest.java
/**
     * Verifies that a parsing throws an exception. The actual exception should bubble up to the calling method so
     * it can validate it using the {@link Test#expectedExceptions()} annotation field.
     *
     * @param remoteJobId the remote job id to pass to the remote system
     * @param rawServerResponse the remote scheduler output to parse and test for job status
     * @param message the message to use in the assertion check
     * @throws RemoteJobMonitorEmptyResponseException if {@code schedulerResponseText} is blank
     * @throws RemoteJobMonitorResponseParsingException if {@code schedulerResponseText} could not be parsed
     */
Verifies that a parsing throws an exception. The actual exception should bubble up to the calling method so
it can validate it using the  Test#expectedExceptions() annotation field.


Verifies that a parsing throws an exception . The actual exception should bubble up to the calling method so it can validate it using the Test#expectedExceptions () annotation field .
protected void _parseThrowsException(String remoteJobId, String rawServerResponse, String message) throws RemoteJobMonitorEmptyResponseException, RemoteJobMonitorResponseParsingException {
        JobStatusResponseParser parser = getJobMonitorResponseParser();
        JobStatusResponse response = parser.parse(remoteJobId, rawServerResponse);
        Assert.fail(message);
    }
protected void _parseThrowsException ( String remoteJobId , String rawServerResponse , String message ) throws RemoteJobMonitorEmptyResponseException , RemoteJobMonitorResponseParsingException { JobStatusResponseParser parser = getJobMonitorResponseParser ( ) ; JobStatusResponse response = parser . parse ( remoteJobId , rawServerResponse ) ; Assert . fail ( message ) ; }
Verifies that a parsing throws an exception.
Verifies that a parsing throws an exception .