frysk.junit
Class Runner

java.lang.Object
  extended by TestRunner
      extended by frysk.junit.Runner

public class Runner
extends TestRunner

frysk specific extension to the JUnit test framework.


Constructor Summary
Runner(String programBasename, String[] args, Prefix configAll, Prefix config32, Prefix config64)
          Create a JUnit TestRunner, using command-line arguments args, and the supplied testClasses.
 
Method Summary
static String getProgramBasename()
          Return the TestRunner's true basename - it could be "funit" or it could be "TestRunner".
 Collection getTestCases()
           
 int runTestCases(Collection tests)
          Run the testcases carried by testClasses.
 void setTestCases(Collection testCases)
           
static void usage(String message, int exitVal)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Runner

public Runner(String programBasename,
              String[] args,
              Prefix configAll,
              Prefix config32,
              Prefix config64)
Create a JUnit TestRunner, using command-line arguments args, and the supplied testClasses.

Method Detail

usage

public static void usage(String message,
                         int exitVal)

setTestCases

public void setTestCases(Collection testCases)

getTestCases

public Collection getTestCases()

getProgramBasename

public static String getProgramBasename()
Return the TestRunner's true basename - it could be "funit" or it could be "TestRunner". XXX: Hack, shouldn't be using static storage for this. Should this go in frysk.Prefix?


runTestCases

public int runTestCases(Collection tests)
Run the testcases carried by testClasses.

Parameters:
testClasses -
Returns:
int the value of exit.