public class HadoopFileSystemTestSupport extends AbstractExternalResourceTestSupport<org.apache.hadoop.fs.FileSystem>
logger, resource| Constructor and Description |
|---|
HadoopFileSystemTestSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupResource()
Perform cleanup of the
AbstractExternalResourceTestSupport.resource field, which is guaranteed to be non null. |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
protected void |
obtainResource()
Try to obtain and validate a resource.
|
apply, getResourceprotected void obtainResource()
throws java.lang.Exception
AbstractExternalResourceTestSupportAbstractExternalResourceTestSupport.resource field with a valid
resource and return normally, or throw an exception.obtainResource in class AbstractExternalResourceTestSupport<org.apache.hadoop.fs.FileSystem>java.lang.Exceptionpublic void cleanupResource()
throws java.lang.Exception
AbstractExternalResourceTestSupportAbstractExternalResourceTestSupport.resource field, which is guaranteed to be non null.cleanupResource in class AbstractExternalResourceTestSupport<org.apache.hadoop.fs.FileSystem>java.lang.Exception - any exception thrown by this method will be logged and swallowedpublic org.apache.hadoop.conf.Configuration getConfiguration()