de.oio.bugkilla.protocol.test
Class CommandableTestHelper

java.lang.Object
  |
  +--de.oio.bugkilla.protocol.test.CommandableTestHelper
All Implemented Interfaces:
Commandable

public class CommandableTestHelper
extends java.lang.Object
implements Commandable

************************************** Represents a mock object for testing * **************************************

Author:
swinkler

Field Summary
 boolean recording
           
 boolean ui
           
 
Constructor Summary
CommandableTestHelper()
           
 
Method Summary
 java.lang.String getStop()
           
 void setInterpreter(CommandInterpreter interpreter)
           
 void setStop(java.lang.String stop)
           
 void startRecording()
          Starts recording a new TestSequence.
 void startRecordingUserInteraction()
          Starts recording a new UserInteraction.
 void stop()
          Stops the process of creating new TestStep objects added to the current TestSequence.
 void stopRecording()
          Stops the recording process of creating new UserInteraction objects added to the current TestSequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

recording

public boolean recording

ui

public boolean ui
Constructor Detail

CommandableTestHelper

public CommandableTestHelper()
Method Detail

stop

public void stop()
Description copied from interface: Commandable
Stops the process of creating new TestStep objects added to the current TestSequence. Also like stopRecording calling this method should terminate the TestSequence object and memorize it.

Specified by:
stop in interface Commandable

startRecording

public void startRecording()
Description copied from interface: Commandable
Starts recording a new TestSequence. Sending this signal the implementing class creates for each step a new TestStep object adding this to the TestSequence until the signal stopRecording is sent.

Specified by:
startRecording in interface Commandable

stopRecording

public void stopRecording()
Description copied from interface: Commandable
Stops the recording process of creating new UserInteraction objects added to the current TestSequence. When calling this method the TestSequence should be registered with a new Identity and memorized in the sequence pool. The Commandable now can restart recording a new sequence by the use of calling startRecording.

Specified by:
stopRecording in interface Commandable

setStop

public void setStop(java.lang.String stop)

getStop

public java.lang.String getStop()

setInterpreter

public void setInterpreter(CommandInterpreter interpreter)

startRecordingUserInteraction

public void startRecordingUserInteraction()
Description copied from interface: Commandable
Starts recording a new UserInteraction.

Specified by:
startRecordingUserInteraction in interface Commandable
See Also:
de.oio.bugkilla.recorder.Commandable#startRecordingTestStep()


Copyright © Orientation in Objects GmbH. All Rights Reserved.