net.sourceforge.pmd.cli
Class BaseCLITest

java.lang.Object
  extended by net.sourceforge.pmd.cli.BaseCLITest

public abstract class BaseCLITest
extends Object

Author:
Romain Pelisse

Field Summary
protected  PrintStream originalErr
           
protected  PrintStream originalOut
           
protected static String SOURCE_FOLDER
           
protected static String TEST_OUPUT_DIRECTORY
           
 
Constructor Summary
BaseCLITest()
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEST_OUPUT_DIRECTORY

protected static final String TEST_OUPUT_DIRECTORY
See Also:
Constant Field Values

SOURCE_FOLDER

protected static final String SOURCE_FOLDER
See Also:
Constant Field Values

originalOut

protected PrintStream originalOut

originalErr

protected PrintStream originalErr
Constructor Detail

BaseCLITest

public BaseCLITest()
Method Detail

setUp

public static void setUp()
                  throws Exception
Throws:
Exception

setup

public void setup()

tearDown

public void tearDown()

createTestOutputFile

protected void createTestOutputFile(String filename)

runTest

protected String runTest(String[] args,
                         String testname)

runTest

protected String runTest(String[] args,
                         String testname,
                         int expectedExitCode)

runPMDWith

protected void runPMDWith(String[] args)

checkStatusCode

protected void checkStatusCode(int expectedExitCode)

getStatusCode

protected int getStatusCode()


Copyright © 2002-2016 InfoEther. All Rights Reserved.