agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/JobRequestProcessorIT.java
/**
	 * Tests that batch submit parameters given in a job description are validated 
	 * properly against the limits of a given queue.
	 * 
	 * @param queue the queue to which to submit the job
	 * @param nodes the number of nodes to request
	 * @param processors the number of processors to request
	 * @param memory the amount of memory to request
	 * @param requestedTime the amount of time to request
	 * @param shouldPass true if the validation should succeed
	 * @param message the assertion message to be returned if the test fails
	 */
Tests that batch submit parameters given in a job description are validated
properly against the limits of a given queue.


Tests that batch submit parameters given in a job description are validated properly against the limits of a given queue .
@Test(dataProvider = "validateBatchSubmitParametersProvider")
	public void validateBatchSubmitParameters(BatchQueue queue, Long nodes, Long processors, Double memory, String requestedTime, boolean shouldPass, String message) 
	{
		assertEquals(shouldPass,
				JobManager.validateBatchSubmitParameters(queue, nodes, processors, memory, requestedTime), 
				message);
	}
@ Test ( dataProvider = "validateBatchSubmitParametersProvider" ) public void validateBatchSubmitParameters ( BatchQueue queue , Long nodes , Long processors , Double memory , String requestedTime , boolean shouldPass , String message ) { assertEquals ( shouldPass , JobManager . validateBatchSubmitParameters ( queue , nodes , processors , memory , requestedTime ) , message ) ; }
Tests that batch submit parameters given in a job description are validated
 properly against the limits of a given queue.
Tests that batch submit parameters given in a job description are validated properly against the limits of a given queue .