Skip to content

Latest commit

 

History

History

junit-env-hadoop-mini-clusters

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

junit5-env-hadoop-mini-clusters

The project provides you with an environment provider for hadoop mini clusters, for use with junit-env-extension.

NOTE: THIS IS WORK IN PROGRESS AND ATM NOTHING WILL WORK AS EXPECTED.

Usage

Maven

Include the following dependency in your pom and you are good to go

<dependency>
  <groupId>eu.coldrye.junit</groupId>
  <artifactId>junit-env-hadoop-mini-clusters</artifactId>
  <version>1.0.0-SNAPSHOT</version>
</dependency>

Junit

package eu.coldrye.junit.env.hadoop.examples;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;

import eu.coldrye.junit.env.EnvExtension;
import eu.coldrye.junit.env.Environment;

import eu.coldrye.junit.env.hadoop.HadoopEnvProvider;
import eu.coldrye.junit.env.hadoop.HadoopEnvProvided;
import eu.coldrye.junit.env.hadoop.HadoopEnvConfig;


@ExtendWith(EnvExtension.class)
@Environment(HadoopEnvProvider.class)
@HadoopEnvConfig(CustomHadoopEnvConfigFactory.class)
public class SampleTest {

  @HadoopEnvProvided
  private Filesystem dfs;

  @Test
  public void writeSomethingToTheDfs() {
    // ...
  }
}

See the provided examples for more information.

References