public abstract class TestBase2 extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
config |
protected boolean |
printPlan |
| Constructor and Description |
|---|
TestBase2(Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
File |
asFile(String path) |
void |
compareResultsByLinesInMemory(String expectedResultStr,
String resultPath) |
String |
createTempFile(String fileName,
String contents) |
JobExecutionResult |
getJobExecutionResult() |
protected JobGraph |
getJobGraph() |
static PrintStream |
getNullPrintStream() |
BufferedInputStream[] |
getResultInputStream(String resultPath) |
BufferedReader[] |
getResultReader(String resultPath) |
String |
getTempDirPath(String dirName) |
String |
getTempFilePath(String fileName) |
protected Plan |
getTestJob() |
protected void |
postSubmit() |
protected void |
preSubmit() |
void |
readAllResultLines(List<String> target,
String resultPath) |
void |
startCluster() |
void |
stopCluster() |
void |
testJob() |
protected static Collection<Object[]> |
toParameterList(Configuration... testConfigs) |
protected final Configuration config
protected boolean printPlan
public TestBase2(Configuration config)
public String getTempDirPath(String dirName) throws IOException
IOExceptionpublic String getTempFilePath(String fileName) throws IOException
IOExceptionpublic String createTempFile(String fileName, String contents) throws IOException
IOExceptionpublic BufferedReader[] getResultReader(String resultPath) throws IOException
IOExceptionpublic BufferedInputStream[] getResultInputStream(String resultPath) throws IOException
IOExceptionpublic void readAllResultLines(List<String> target, String resultPath) throws IOException
IOExceptionpublic void compareResultsByLinesInMemory(String expectedResultStr, String resultPath) throws Exception
Exceptionprotected Plan getTestJob()
public JobExecutionResult getJobExecutionResult()
protected static Collection<Object[]> toParameterList(Configuration... testConfigs)
public static PrintStream getNullPrintStream()
Copyright © 2013–2014. All rights reserved.