public class textui
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static int |
MESSAGES |
Verbosity levels.
|
static int |
SILENT |
Verbosity levels.
|
static int |
SUMMARY |
Verbosity levels.
|
static int |
TESTNAMES |
Verbosity levels.
|
Constructor | Description |
---|---|
textui() |
Modifier and Type | Method | Description |
---|---|---|
static void |
main(java.lang.String... args) |
Produces the report described for runClasses, on the classes named in
ARGS.
|
static int |
runClasses(int verbosity,
java.lang.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,
java.util.List<java.lang.Class<?>> classes) |
Return as for
runClasses (VERBOSITY, CLASSES),
but with the class list stored in a list rather than an array. |
static int |
runClasses(java.lang.Class<?>... classes) |
Return
runClasses (Messages, CLASSES). |
static int |
runClasses(java.util.List<java.lang.Class<?>> classes) |
Return
runClasses (MESSAGES, CLASSES). |
public static final int SILENT
public static final int SUMMARY
public static final int TESTNAMES
public static final int MESSAGES
public static int runClasses(int verbosity, java.lang.Class<?>... classes)
Silent
, prints nothing.
Summary
, prints the total test time and
numbers of tests run and failed.
TestNames
, as for Summary, plus print names
of failing test methods.
Messages
, as for TestNames, and print descriptive
message notating the error, plus its location in the test
routines.
public static int runClasses(java.lang.Class<?>... classes)
runClasses
(Messages, CLASSES).public static int runClasses(int verbosity, java.util.List<java.lang.Class<?>> classes)
runClasses
(VERBOSITY, CLASSES),
but with the class list stored in a list rather than an array.public static int runClasses(java.util.List<java.lang.Class<?>> classes)
runClasses
(MESSAGES, CLASSES).public static void main(java.lang.String... args)