ucb.junit
Class textui

java.lang.Object
  extended by ucb.junit.textui

public class textui
extends Object


Field Summary
static int Messages
           
static int Silent
           
static int Summary
           
static int TestNames
           
 
Constructor Summary
textui()
           
 
Method Summary
static void main(String... args)
          Produces the report described for runClasses, on the classes named in ARGS.
static int runClasses(Class<?>... classes)
          Equivalent to runClasses(Messages, CLASSES).
static int runClasses(int verbosity, Class<?>... classes)
          Run all tests in CLASSES, reporting results on the standard error output, depending on VERBOSITY, which determines what is reported.
static int runClasses(int verbosity, List<Class<?>> classes)
          As for runClasses (VERBOSITY, CLASSES), but with the class list stored in a list rather than an array.
static int runClasses(List<Class<?>> classes)
          Equivalent to runClasses (Messages, CLASSES).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Silent

public static final int Silent
See Also:
Constant Field Values

Summary

public static final int Summary
See Also:
Constant Field Values

TestNames

public static final int TestNames
See Also:
Constant Field Values

Messages

public static final int Messages
See Also:
Constant Field Values
Constructor Detail

textui

public textui()
Method Detail

runClasses

public static int runClasses(int verbosity,
                             Class<?>... classes)
Run all tests in CLASSES, reporting results on the standard error output, depending on VERBOSITY, which determines what is reported. if VERBOSITY is Returns the number of failed tests.


runClasses

public static int runClasses(Class<?>... classes)
Equivalent to runClasses(Messages, CLASSES).


runClasses

public static int runClasses(int verbosity,
                             List<Class<?>> classes)
As for runClasses (VERBOSITY, CLASSES), but with the class list stored in a list rather than an array.


runClasses

public static int runClasses(List<Class<?>> classes)
Equivalent to runClasses (Messages, CLASSES).


main

public static void main(String... args)
Produces the report described for runClasses, on the classes named in ARGS. An initial "--level=NAME" determines the verbosity, which may be Silent, Summary, TestNames, or Messages. Default is Messages.