org.apache.crunch.test
Class CrunchTestSupport
java.lang.Object
org.apache.crunch.test.CrunchTestSupport
public class CrunchTestSupport
- extends Object
A temporary workaround for Scala tests to use when working with Rule
annotations until it gets fixed in JUnit 4.11.
Method Summary |
static
<KI,VI,KO,VO>
org.apache.hadoop.mapreduce.TaskInputOutputContext<KI,VI,KO,VO> |
|
getTestContext(org.apache.hadoop.conf.Configuration config)
The method creates a TaskInputOutputContext which can be used
in unit tests. |
tempDir
public TemporaryPath tempDir
CrunchTestSupport
public CrunchTestSupport()
getTestContext
public static <KI,VI,KO,VO> org.apache.hadoop.mapreduce.TaskInputOutputContext<KI,VI,KO,VO> getTestContext(org.apache.hadoop.conf.Configuration config)
- The method creates a TaskInputOutputContext which can be used
in unit tests. The context serves very limited purpose. You can only
operate with counters, taskAttempId, status and configuration while using
this context.
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.