public abstract class AbstractHadoopClusterTests extends Object implements ApplicationContextAware
| Modifier and Type | Field and Description | 
|---|---|
| protected ApplicationContext | applicationContext | 
| protected Configuration | configuration | 
| protected HadoopCluster | hadoopCluster | 
| Constructor and Description | 
|---|
| AbstractHadoopClusterTests() | 
| Modifier and Type | Method and Description | 
|---|---|
| ApplicationContext | getApplicationContext()Gets the  ApplicationContextfor tests. | 
| Configuration | getConfiguration()Gets the running cluster runtime
  Configurationfor tests. | 
| protected FileSystem | getFileSystem()Returns a configured  FileSysteminstance for
 test cases to read and write files to it. | 
| HadoopCluster | getHadoopCluster()Gets the running  HadoopClusterfor tests. | 
| void | setApplicationContext(ApplicationContext applicationContext) | 
| void | setConfiguration(Configuration configuration)Sets the  Configuration. | 
| void | setHadoopCluster(HadoopCluster hadoopCluster)Sets the  HadoopCluster | 
protected ApplicationContext applicationContext
protected Configuration configuration
protected HadoopCluster hadoopCluster
public ApplicationContext getApplicationContext()
ApplicationContext for tests.public final void setApplicationContext(ApplicationContext applicationContext)
setApplicationContext in interface ApplicationContextAwarepublic Configuration getConfiguration()
Configuration for tests.@Autowired public void setConfiguration(Configuration configuration)
Configuration.configuration - the Configurationpublic HadoopCluster getHadoopCluster()
HadoopCluster for tests.@Autowired public void setHadoopCluster(HadoopCluster hadoopCluster)
HadoopClusterhadoopCluster - the Hadoop clusterprotected FileSystem getFileSystem() throws IOException
FileSystem instance for
 test cases to read and write files to it.
 
 Tests should use this FileSystem instance.
IOException - exception