agave-files/files-api/src/test/java/org/iplantc/service/io/BaseTestCase.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
     */
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
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
protected void initSystems() throws Exception {
        StorageSystem storageSystem = (StorageSystem) getNewInstanceOfRemoteSystem(RemoteSystemType.STORAGE, "sftp");
        storageSystem.setOwner(SYSTEM_OWNER);
        storageSystem.setPubliclyAvailable(true);
        storageSystem.setGlobalDefault(true);
        storageSystem.getUsersUsingAsDefault().add(SYSTEM_OWNER);
        systemDao.persist(storageSystem);
        ExecutionSystem 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 = ( StorageSystem ) getNewInstanceOfRemoteSystem ( RemoteSystemType . STORAGE , "sftp" ) ; storageSystem . setOwner ( SYSTEM_OWNER ) ; storageSystem . setPubliclyAvailable ( true ) ; storageSystem . setGlobalDefault ( true ) ; storageSystem . getUsersUsingAsDefault ( ) . add ( SYSTEM_OWNER ) ; systemDao . persist ( storageSystem ) ; }
Create a single {@link StorageSystem} and {@link ExecutionSystem} for
 basic testing.
Create a single { @link StorageSystem } and { @link ExecutionSystem } for basic testing .
// //        ExecutionSystem 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);