public abstract class BaseCLITest extends Object
Modifier and Type | Field and Description |
---|---|
protected PrintStream |
originalErr |
protected PrintStream |
originalOut |
protected static String |
SOURCE_FOLDER |
protected static String |
TEST_OUPUT_DIRECTORY |
Constructor and Description |
---|
BaseCLITest() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkStatusCode(int expectedExitCode) |
protected void |
createTestOutputFile(String filename) |
protected int |
getStatusCode() |
protected void |
runPMDWith(String[] args) |
protected String |
runTest(String[] args,
String testname) |
protected String |
runTest(String[] args,
String testname,
int expectedExitCode) |
void |
setup() |
static void |
setUp() |
void |
tearDown() |
protected static final String TEST_OUPUT_DIRECTORY
protected static final String SOURCE_FOLDER
protected PrintStream originalOut
protected PrintStream originalErr
public void setup()
public void tearDown()
protected void createTestOutputFile(String filename)
protected void runPMDWith(String[] args)
protected void checkStatusCode(int expectedExitCode)
protected int getStatusCode()
Copyright © 2002-2015 InfoEther. All Rights Reserved.