agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/submission/AbstractJobSubmissionTest.java
/**
     * Creates a {@link Job} object with the given {@code status} using the provided
     * {@code software} object pulled from the user's available apps. This method 
     * calls the {@link #createJob(JobStatusType, Software, ExecutionSystem, BatchQueue, String, StorageSystem)}
     * method using the {@link ExecutionSystem} and {@link ExecutionSystem#getDefaultQueue()} 
     * from the {@link Software} object.
     * 
     * The returned job has <em>NOT</em> been persisted.
     * 
     * @param status the status of the created job
     * @param software the software for the job to run
     * @param username if null, {@link #SYSTEM_OWNER} will be used
     * @return unsaved {@link Job} object
     * @throws Exception if anything goes wrong
     */
Creates a  Job object with the given  status using the provided
software object pulled from the user's available apps.

The returned job has NOT been persisted.


Creates a Job object with the given status using the provided software object pulled from the user ' s available apps . The returned job has NOT been persisted .
public Job createJob(JobStatusType status, Software software, String username)
    throws Exception 
    {
        if (StringUtils.isEmpty(username)) username = SYSTEM_OWNER;
        return createJob(status, 
        	            software, 
        	            software.getExecutionSystem(), 
        	            software.getExecutionSystem().getQueue(software.getDefaultQueue()), 
        	            username, 
        	            (StorageSystem)systemDao.getGlobalDefaultSystemForTenant(RemoteSystemType.STORAGE, TenancyHelper.getCurrentTenantId()));
    }
public Job createJob ( JobStatusType status , Software software , String username ) throws Exception { if ( StringUtils . isEmpty ( username ) ) username = SYSTEM_OWNER ; return createJob ( status , software , software . getExecutionSystem ( ) , software . getExecutionSystem ( ) . getQueue ( software . getDefaultQueue ( ) ) , username , ( StorageSystem ) systemDao . getGlobalDefaultSystemForTenant ( RemoteSystemType . STORAGE , TenancyHelper . getCurrentTenantId ( ) ) ) ; }
Creates a {@link Job} object with the given {@code status} using the provided
 {@code software} object pulled from the user's available apps.
Creates a { @link Job } object with the given { @code status } using the provided { @code software } object pulled from the user ' s available apps .