agave-files/files-core/src/test/java/org/iplantc/service/io/notifications/LogicalFileNotificationIT.java
/**
	 * Create a single {@link StorageSystem} for basic testing.
	 *
	 * Templates used for these systems are taken from the
	 * {@code target/test-classes/systems/storage/storage.example.com.json} files.
	 *
	 * @throws Exception if unable to persist the sotrage system
	 */
Create a single  StorageSystem for basic testing.
Templates used for these systems are taken from the
target/test-classes/systems/storage/storage.example.com.json files.

@throws Exception if unable to persist the sotrage system
Create a single StorageSystem for basic testing . Templates used for these systems are taken from the target / test - classes / systems / storage / storage . example . com . json files . @throws Exception if unable to persist the sotrage system
protected StorageSystem createStorageSystems() throws Exception {
		JSONObject json = jtd.getTestDataObject(STORAGE_SYSTEM_TEMPLATE_DIR + File.separator +
					"sftp.example.com.json");
		json.remove("id");
		json.put("id", UUID.randomUUID().toString());
		StorageSystem storageSystem = StorageSystem.fromJSON(json);
		storageSystem.setPubliclyAvailable(true);
		storageSystem.setGlobalDefault(true);
		storageSystem.getUsersUsingAsDefault().add(SYSTEM_OWNER);
		storageSystem.setOwner(SYSTEM_OWNER);
		String homeDir = storageSystem.getStorageConfig().getHomeDir();
		homeDir = StringUtils.isEmpty(homeDir) ? "" : homeDir;
		storageSystem.getStorageConfig().setHomeDir(homeDir + "/" + getClass().getSimpleName());
		systemDao.persist(storageSystem);
		return storageSystem;
	}
protected StorageSystem createStorageSystems ( ) throws Exception { JSONObject json = jtd . getTestDataObject ( STORAGE_SYSTEM_TEMPLATE_DIR + File . separator + "sftp.example.com.json" ) ; json . remove ( "id" ) ; json . put ( "id" , UUID . randomUUID ( ) . toString ( ) ) ; StorageSystem storageSystem = StorageSystem . fromJSON ( json ) ; storageSystem . setPubliclyAvailable ( true ) ; storageSystem . setGlobalDefault ( true ) ; storageSystem . getUsersUsingAsDefault ( ) . add ( SYSTEM_OWNER ) ; storageSystem . setOwner ( SYSTEM_OWNER ) ; String homeDir = storageSystem . getStorageConfig ( ) . getHomeDir ( ) ; homeDir = StringUtils . isEmpty ( homeDir ) ? "" : homeDir ; storageSystem . getStorageConfig ( ) . setHomeDir ( homeDir + "/" + getClass ( ) . getSimpleName ( ) ) ; systemDao . persist ( storageSystem ) ; return storageSystem ; }
Create a single {@link StorageSystem} for basic testing.
Create a single { @link StorageSystem } for basic testing .