agave-files/files-core/src/test/java/org/iplantc/service/io/notifications/LogicalFileNotificationIT.java
/**
	 * Creates a bare bones LogicalFile object.
	 * @return LogicalFile with minimal set of attributes.
	 * @throws LogicalFileException
	 */
Creates a bare bones LogicalFile object.
@return LogicalFile with minimal set of attributes.
Creates a bare bones LogicalFile object . @return LogicalFile with minimal set of attributes .
private LogicalFile createLogicalFile() throws LogicalFileException
	{
	    LogicalFile file = null;
		try 
		{
		    StorageSystem storageSystem = createStorageSystems();
		    file = new LogicalFile(SYSTEM_OWNER, storageSystem, URI.create("agave://" + storageSystem.getSystemId() + "/" + LOCAL_TXT_FILE_NAME), storageSystem.getRemoteDataClient().resolvePath(LOCAL_TXT_FILE_NAME + ".copy"));
	        file.setStatus(StagingTaskStatus.STAGING_QUEUED);
	        file.setOwner(SYSTEM_OWNER);
	        LogicalFileDao.persist(file);
		} 
		catch (Exception e) {
			Assert.fail("Failed to create LogicalFile object", e);
		}
		return file;
	}
private LogicalFile createLogicalFile ( ) throws LogicalFileException { LogicalFile file = null ; try { StorageSystem storageSystem = createStorageSystems ( ) ; file = new LogicalFile ( SYSTEM_OWNER , storageSystem , URI . create ( "agave://" + storageSystem . getSystemId ( ) + "/" + LOCAL_TXT_FILE_NAME ) , storageSystem . getRemoteDataClient ( ) . resolvePath ( LOCAL_TXT_FILE_NAME + ".copy" ) ) ; file . setStatus ( StagingTaskStatus . STAGING_QUEUED ) ; file . setOwner ( SYSTEM_OWNER ) ; LogicalFileDao . persist ( file ) ; } catch ( Exception e ) { Assert . fail ( "Failed to create LogicalFile object" , e ) ; } return file ; }
Creates a bare bones LogicalFile object.
Creates a bare bones LogicalFile object .