agave-systems/systems-core/src/test/java/org/iplantc/service/transfer/RemoteDataClientPermissionProviderTest.java
/**
	 * Does a clean setup of the remote file/folder used for testing.
	 * This means creating the file/folder each time to guarantee
	 * there is no carryover between tests.
	 */
Does a clean setup of the remote file/folder used for testing.
This means creating the file/folder each time to guarantee
there is no carryover between tests.
Does a clean setup of the remote file / folder used for testing . This means creating the file / folder each time to guarantee there is no carryover between tests .
@BeforeMethod
	protected void beforeMethod(Method m) 
	{
		try 
		{	
    		getClient().authenticate();
    		if (!getClient().doesExist(m.getName())) {
    		    getClient().mkdirs(m.getName(), system.getOwner());
    		}
    		if (!getClient().doesExist(m.getName() + "/" + LOCAL_DIR_NAME)) {
    		    getClient().put(LOCAL_DIR, m.getName());
    		}
    		if (!getClient().isDirectory(m.getName() + "/" + LOCAL_DIR_NAME)) {
                Assert.fail("Test work directory " + client.resolvePath(m.getName()) + " exists, but is not a directory.");
            }
    	} 
		catch (Exception e) {
    		Assert.fail("Failed to create home directory and stage test data. Tests would fail from here on.", e);
    	} 
	}
@ BeforeMethod protected void beforeMethod ( Method m ) { try { getClient ( ) . authenticate ( ) ; if ( ! getClient ( ) . doesExist ( m . getName ( ) ) ) { getClient ( ) . mkdirs ( m . getName ( ) , system . getOwner ( ) ) ; } if ( ! getClient ( ) . doesExist ( m . getName ( ) + "/" + LOCAL_DIR_NAME ) ) { getClient ( ) . put ( LOCAL_DIR , m . getName ( ) ) ; } if ( ! getClient ( ) . isDirectory ( m . getName ( ) + "/" + LOCAL_DIR_NAME ) ) { Assert . fail ( "Test work directory " + client . resolvePath ( m . getName ( ) ) + " exists, but is not a directory." ) ; } } catch ( Exception e ) { Assert . fail ( "Failed to create home directory and stage test data. Tests would fail from here on." , e ) ; } }
Does a clean setup of the remote file/folder used for testing.
Does a clean setup of the remote file / folder used for testing .
// create permisssion folder