public class SimplePrint
extends java.lang.Object
In this example, we generate a set of test sequences, and then
use a TestDriver
to "play" these sequences on some system under test (SUT). The way a
driver interacts with the SUT is through an interface called a
TestHook. Every time a new
event is to be "played", the driver calls the hook's
execute()
method and gives it the event. It is then up to the hook's actual
implementation to do something with this event, which depends on the
context.
In our example, we illustrate this process with a simple hook that just prints the event it receives to the standard output. Obviously, to test a real system, one needs to implement a hook that takes the input event and acts upon the SUT in a concrete way.
| Constructor and Description |
|---|
SimplePrint() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
Copyright © Sylvain HallĂ©. All Rights Reserved.