agave-files/files-core/src/test/java/org/iplantc/service/io/BaseTestCase.java
/**
     * Creates and persists an {@link StorageSystem} for every template
     * with file name matching {@link StorageProtocolType}.example.com.json
     * in the {@code target/test-classes/systems/storage} folder.
     * @throws Exception
     */
Creates and persists an  StorageSystem for every template
with file name matching  StorageProtocolType.example.com.json
in the  target/test-classes/systems/storage folder.
@throws Exception
Creates and persists an StorageSystem for every template with file name matching StorageProtocolType . example . com . json in the target / test - classes / systems / storage folder . @throws Exception
protected void initAllStorageSystems() throws Exception {
        for (StorageProtocolType protocol: StorageProtocolType.values())
        {
            if (protocol == AZURE || protocol == SWIFT) continue;
            StorageSystem storageSystem = (StorageSystem)
                    getNewInstanceOfRemoteSystem(RemoteSystemType.STORAGE, protocol.name());
            storageSystem.setOwner(SYSTEM_OWNER);
            storageSystem.setPubliclyAvailable(true);
            storageSystem.setGlobalDefault(true);
            storageSystem.getUsersUsingAsDefault().add(SYSTEM_OWNER);
            systemDao.persist(storageSystem);
        }
    }
protected void initAllStorageSystems ( ) throws Exception { for ( StorageProtocolType protocol : StorageProtocolType . values ( ) ) { if ( protocol == AZURE || protocol == SWIFT ) continue ; StorageSystem storageSystem = ( StorageSystem ) getNewInstanceOfRemoteSystem ( RemoteSystemType . STORAGE , protocol . name ( ) ) ; storageSystem . setOwner ( SYSTEM_OWNER ) ; storageSystem . setPubliclyAvailable ( true ) ; storageSystem . setGlobalDefault ( true ) ; storageSystem . getUsersUsingAsDefault ( ) . add ( SYSTEM_OWNER ) ; systemDao . persist ( storageSystem ) ; } }
Creates and persists an {@link StorageSystem} for every template
 with file name matching {@link StorageProtocolType}.example.com.json
 in the {@code target/test-classes/systems/storage} folder.
Creates and persists an { @link StorageSystem } for every template with file name matching { @link StorageProtocolType } . example . com . json in the { @code target / test - classes / systems / storage } folder .