agave-systems/systems-core/src/test/java/org/iplantc/service/transfer/AbstractPathResolutionTests.java
/**
	 * Tests whether the given path resolves correctly against the virutal root and home for a given protocol's remote data client.
	 * 
	 * @param remoteDataClient mock remote data client to test the method
	 * @param testAgaveSystemPath the {@link RemoteSystem} path provided by users for remote data actions
	 * @param expectedResolvedRemotePath the expected path the {@code testAgaveSystemPath} resolves to on the remote system
	 * @param shouldThrowException true if the path resolution should throw an exception
	 * @param message message for failed test assertion exceptions
	 */
Tests whether the given path resolves correctly against the virutal root and home for a given protocol's remote data client.


Tests whether the given path resolves correctly against the virutal root and home for a given protocol ' s remote data client .
protected void abstractResolvePath(RemoteDataClient remoteDataClient, String testAgaveSystemPath, String expectedResolvedRemotePath, boolean shouldThrowException, String message)
	{
    	try
    	{
    		String afterPath = remoteDataClient.resolvePath(testAgaveSystemPath);
    		Assert.assertEquals(afterPath, expectedResolvedRemotePath,
    				"Resolved path " + afterPath + " did not match the expected resolved path of " +
							expectedResolvedRemotePath);
    	} 
    	catch (Exception e) {
    		if (!shouldThrowException) {
        		Assert.fail(message, e);
			}
        }
	}
protected void abstractResolvePath ( RemoteDataClient remoteDataClient , String testAgaveSystemPath , String expectedResolvedRemotePath , boolean shouldThrowException , String message ) { try { String afterPath = remoteDataClient . resolvePath ( testAgaveSystemPath ) ; Assert . assertEquals ( afterPath , expectedResolvedRemotePath , "Resolved path " + afterPath + " did not match the expected resolved path of " + expectedResolvedRemotePath ) ; } catch ( Exception e ) { if ( ! shouldThrowException ) { Assert . fail ( message , e ) ; } } }
Tests whether the given path resolves correctly against the virutal root and home for a given protocol's remote data client.
Tests whether the given path resolves correctly against the virutal root and home for a given protocol ' s remote data client .