agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/submission/AbstractJobSubmissionTest.java
/**
     * Removes a single {@link Job#getArchivePath()} on the {@link Job#getArchiveSystem()}
     * 
     * @param job the job for which the archive will be deleted
     */
Removes a single  Job#getArchivePath() on the  Job#getArchiveSystem()

@param job the job for which the archive will be deleted
Removes a single Job#getArchivePath () on the Job#getArchiveSystem () @param job the job for which the archive will be deleted
public void deleteJobArchiveDirectory(Job job) {
        RemoteDataClient remoteDataClient = null;
        RemoteSystem archiveSystem = job.getArchiveSystem();
        try 
        {
            remoteDataClient = archiveSystem.getRemoteDataClient(job.getInternalUsername());
            remoteDataClient.authenticate();
            if (remoteDataClient.doesExist(job.getArchivePath())) {
                remoteDataClient.delete(job.getArchivePath());
                Assert.assertFalse(remoteDataClient.doesExist(job.getArchivePath()), 
                        "Failed to delete job work directory agave://" 
                        + archiveSystem.getSystemId() 
                        + "/" + job.getArchivePath() + " after test");
            }
        } catch (Exception e) {
            Assert.fail("Failed to delete job work directory agave://" 
                    + archiveSystem.getSystemId() 
                    + "/" + job.getArchivePath() + " after test", e);
        } finally {
            if (remoteDataClient != null) {
                remoteDataClient.disconnect();
            }
        }
    }
public void deleteJobArchiveDirectory ( Job job ) { RemoteDataClient remoteDataClient = null ; RemoteSystem archiveSystem = job . getArchiveSystem ( ) ; try { remoteDataClient = archiveSystem . getRemoteDataClient ( job . getInternalUsername ( ) ) ; remoteDataClient . authenticate ( ) ; if ( remoteDataClient . doesExist ( job . getArchivePath ( ) ) ) { remoteDataClient . delete ( job . getArchivePath ( ) ) ; Assert . assertFalse ( remoteDataClient . doesExist ( job . getArchivePath ( ) ) , "Failed to delete job work directory agave://" + archiveSystem . getSystemId ( ) + "/" + job . getArchivePath ( ) + " after test" ) ; } } catch ( Exception e ) { Assert . fail ( "Failed to delete job work directory agave://" + archiveSystem . getSystemId ( ) + "/" + job . getArchivePath ( ) + " after test" , e ) ; } finally { if ( remoteDataClient != null ) { remoteDataClient . disconnect ( ) ; } } }
Removes a single {@link Job#getArchivePath()} on the {@link Job#getArchiveSystem()}
Removes a single { @link Job#getArchivePath () } on the { @link Job#getArchiveSystem () }