All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class rebelsky.util.Tester

java.lang.Object
   |
   +----rebelsky.util.Tester

public class Tester
extends Object
A simple mechanism for testing programs. Whenever you call the println() method, the message is printed and then a number of options are given. The user can then A program can also turn prompting on with on and off with off.


Constructor Index

o Tester()
Build a new tester that doesn't include a name in the reports and is currently off.
o Tester(boolean)
Build a new tester that doesn't include a name in the reports and whose status is set to the parameter (true=on; false=off).
o Tester(String)
Build a new tester that includes a name in reports and is currently off.
o Tester(String, boolean)
Build a new tester that includes a name in reports and is currently on.

Method Index

o off()
Turn the tester off.
o on()
Turn the tester on.
o println(String)
Print a message.

Constructors

o Tester
 public Tester()
Build a new tester that doesn't include a name in the reports and is currently off.

o Tester
 public Tester(boolean status)
Build a new tester that doesn't include a name in the reports and whose status is set to the parameter (true=on; false=off).

o Tester
 public Tester(String name)
Build a new tester that includes a name in reports and is currently off.

o Tester
 public Tester(String name,
               boolean status)
Build a new tester that includes a name in reports and is currently on.

Methods

o off
 public void off()
Turn the tester off.

o on
 public void on()
Turn the tester on.

o println
 public void println(String message)
Print a message.


All Packages  Class Hierarchy  This Package  Previous  Next  Index