public interface Test
test description.
A test should also define `main' as follows:
public static void main(String[] args) {
Test t = new test-class-name();
Status s = t.run(args, new PrintWriter(System.err), new PrintWriter(System.out));
s.exit();
}
Defining `main' like this means that the test can also be run standalone,
independent of the harness.Status run(java.lang.String[] args, java.io.PrintWriter out1, java.io.PrintWriter out2)
args - These are supplied by the script running the test,
typically derived from values in the
test description.
and allow a script to provide configuration information to a test,
or to reuse a test with different test values.out1 - A stream to which to report errors. This stream was previously called "err".out2 - An additional stream to which to report messages. This stream was previously called "out".Status object representing the outcome of the test.Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.