BlobUtils { static File getStorageLocation( File storageDir, @Nullable JobID jobId, BlobKey key) throws IOException { File file = new File(getStorageLocationPath(storageDir.getAbsolutePath(), jobId, key)); mkdirTolerateExisting(file.getParentFile()); return file; } private  BlobUtils(); static BlobStoreService createBlobStoreFromConfig(Configuration config);  }
@Test(expected = IOException.class) public void testExceptionOnCreateCacheDirectoryFailureNoJob() throws IOException { BlobUtils.getStorageLocation(new File(blobUtilsTestDirectory, CANNOT_CREATE_THIS), null, new TransientBlobKey()); }
@Test(expected = IOException.class) public void testExceptionOnCreateCacheDirectoryFailureForJobTransient() throws IOException { BlobUtils.getStorageLocation(new File(blobUtilsTestDirectory, CANNOT_CREATE_THIS), new JobID(), new TransientBlobKey()); }
@Test(expected = IOException.class) public void testExceptionOnCreateCacheDirectoryFailureForJobPermanent() throws IOException { BlobUtils.getStorageLocation(new File(blobUtilsTestDirectory, CANNOT_CREATE_THIS), new JobID(), new PermanentBlobKey()); }