agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/submission/AbstractJobSubmissionTest.java
/**
	 * Create a single {@link StorageSystem} and {@link ExecutionSystem} for
	 * basic testing. Subclasses will want to override this class to build
	 * a larger permutation matrix of test cases. 
	 * 
	 * Templates used for these systems are taken from the 
	 * {@code target/test-classes/systems/execution/execute.example.com.json} and
	 * {@code target/test-classes/systems/storage/storage.example.com.json} files.
	 * 
     * @throws Exception if things go sideways
     */
Create a single  StorageSystem and  ExecutionSystem for
basic testing. Subclasses will want to override this class to build
a larger permutation matrix of test cases.



@throws Exception if things go sideways
Create a single StorageSystem and ExecutionSystem for basic testing . Subclasses will want to override this class to build a larger permutation matrix of test cases . @throws Exception if things go sideways
protected void initSystems() throws Exception {
	    storageSystem = (StorageSystem) getNewInstanceOfRemoteSystem(RemoteSystemType.STORAGE, "storage");
        storageSystem.setOwner(SYSTEM_OWNER);
        storageSystem.setPubliclyAvailable(true);
        storageSystem.setGlobalDefault(true);
        storageSystem.getUsersUsingAsDefault().add(SYSTEM_OWNER);
        systemDao.persist(storageSystem);
        executionSystem = 
                (ExecutionSystem) getNewInstanceOfRemoteSystem(RemoteSystemType.EXECUTION, "execute");
        executionSystem.setOwner(SYSTEM_OWNER);
        executionSystem.getBatchQueues().clear();
        executionSystem.addBatchQueue(dedicatedQueue.clone());
        executionSystem.addBatchQueue(longQueue.clone());
        executionSystem.addBatchQueue(mediumQueue.clone());
        executionSystem.addBatchQueue(shortQueue.clone());
        executionSystem.setPubliclyAvailable(true);
        executionSystem.setType(RemoteSystemType.EXECUTION);
        systemDao.persist(executionSystem);
    }
protected void initSystems ( ) throws Exception { storageSystem = ( StorageSystem ) getNewInstanceOfRemoteSystem ( RemoteSystemType . STORAGE , "storage" ) ; storageSystem . setOwner ( SYSTEM_OWNER ) ; storageSystem . setPubliclyAvailable ( true ) ; storageSystem . setGlobalDefault ( true ) ; storageSystem . getUsersUsingAsDefault ( ) . add ( SYSTEM_OWNER ) ; systemDao . persist ( storageSystem ) ; executionSystem = ( ExecutionSystem ) getNewInstanceOfRemoteSystem ( RemoteSystemType . EXECUTION , "execute" ) ; executionSystem . setOwner ( SYSTEM_OWNER ) ; executionSystem . getBatchQueues ( ) . clear ( ) ; executionSystem . addBatchQueue ( dedicatedQueue . clone ( ) ) ; executionSystem . addBatchQueue ( longQueue . clone ( ) ) ; executionSystem . addBatchQueue ( mediumQueue . clone ( ) ) ; executionSystem . addBatchQueue ( shortQueue . clone ( ) ) ; executionSystem . setPubliclyAvailable ( true ) ; executionSystem . setType ( RemoteSystemType . EXECUTION ) ; systemDao . persist ( executionSystem ) ; }
Create a single {@link StorageSystem} and {@link ExecutionSystem} for
 basic testing.
Create a single { @link StorageSystem } and { @link ExecutionSystem } for basic testing .