| abbot.editor.recorder.AbstractRecorderFixture abbot.editor.recorder.AbstractSemanticRecorderFixture
All known Subclasses: abbot.editor.recorder.JInternalFrameRecorderTest, abbot.editor.recorder.CaptureDragDropTest, abbot.editor.recorder.DialogRecorderTest, abbot.editor.recorder.WindowRecorderTest, abbot.editor.recorder.JTableRecorderTest, abbot.editor.recorder.FileDialogRecorderTest, abbot.editor.recorder.ChoiceRecorderTest, abbot.editor.recorder.ComponentRecorderTest, abbot.editor.recorder.JTextComponentRecorderTest, abbot.editor.recorder.JTreeRecorderTest, abbot.editor.recorder.FrameRecorderTest, abbot.editor.recorder.JTabbedPaneRecorderTest, abbot.editor.recorder.JComponentRecorderTest, abbot.editor.recorder.JListRecorderTest, abbot.editor.recorder.JComboBoxRecorderTest,
AbstractSemanticRecorderFixture | abstract public class AbstractSemanticRecorderFixture extends AbstractRecorderFixture (Code) | | All SemanticRecorder tests should derive from this class.
Provides a framework similar to EventRecorder which creates appropriate
semantic recorders based on incoming events.
Will continue recording past the first semantic recorder used, preserving
the first one until an invocation of assert[No]Step, which resets the
preserved recorder, replacing it with the current one when appropriate.
This allows a more or less continuous stream of actions alternating with
assert[No]Step calls.
NOTE: it would probably be simpler to not do this and require explicit
startRecording steps, although there is some benefit to checking recorders
back to back (it more closely simulates the EventRecorder behavior).
|
Method Summary | |
protected void | assertNoStep() | protected void | assertNoTrailingEvents() Verify that no unconsumed events were seen since the last recorded
step. | protected void | assertStep(String pattern) Make sure the step created matches the given pattern. | public void | assertStep(String pattern, Step step) | protected void | assertStep(String pattern, boolean mustBeFinished) Make sure the recorder created step matches the given pattern,
optionally requiring the recorder to have detected the end of the
semantic event. | protected synchronized void | clear() Clear the current state of all steps and active recorder. | abstract protected SemanticRecorder | createSemanticRecorder(Resolver r) Each Recorder subclass test should implement this method to return the
SemanticRecorder to be tested. | protected void | fixtureSetUp() | protected void | fixtureTearDown() | protected synchronized Recorder | getRecorder() Provide a recorder which acts sort of like EventRecorder, but will
always pass events on to the same SemanticRecorder obtained with
createRecorder, rather than dynamically determining which recorder to
create. | protected synchronized Step | getStep() | protected synchronized boolean | hasRecorder() | protected synchronized void | recordEvent(AWTEvent event) | protected void | startRecording() | protected void | startRecording(boolean waitForIdle) |
AbstractSemanticRecorderFixture | public AbstractSemanticRecorderFixture()(Code) | | |
AbstractSemanticRecorderFixture | public AbstractSemanticRecorderFixture(String name)(Code) | | Create a new test case with the given name.
|
assertNoStep | protected void assertNoStep()(Code) | | |
assertNoTrailingEvents | protected void assertNoTrailingEvents()(Code) | | Verify that no unconsumed events were seen since the last recorded
step.
|
assertStep | protected void assertStep(String pattern)(Code) | | Make sure the step created matches the given pattern. The recorder
may not nececessarily have detected the end of the pattern.
|
assertStep | protected void assertStep(String pattern, boolean mustBeFinished)(Code) | | Make sure the recorder created step matches the given pattern,
optionally requiring the recorder to have detected the end of the
semantic event.
|
clear | protected synchronized void clear()(Code) | | Clear the current state of all steps and active recorder.
|
createSemanticRecorder | abstract protected SemanticRecorder createSemanticRecorder(Resolver r)(Code) | | Each Recorder subclass test should implement this method to return the
SemanticRecorder to be tested.
|
getRecorder | protected synchronized Recorder getRecorder()(Code) | | Provide a recorder which acts sort of like EventRecorder, but will
always pass events on to the same SemanticRecorder obtained with
createRecorder, rather than dynamically determining which recorder to
create.
|
getStep | protected synchronized Step getStep()(Code) | | |
hasRecorder | protected synchronized boolean hasRecorder()(Code) | | |
recordEvent | protected synchronized void recordEvent(AWTEvent event)(Code) | | |
startRecording | protected void startRecording()(Code) | | |
startRecording | protected void startRecording(boolean waitForIdle)(Code) | | |
|
|