Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.test.TestScriptProcess Class Reference

Implements ScriptProcess for regression tests. More...

+ Inheritance diagram for com.realtime.crossfire.jxclient.test.TestScriptProcess:
+ Collaboration diagram for com.realtime.crossfire.jxclient.test.TestScriptProcess:

Public Member Functions

void addScriptProcessListener (@NotNull final ScriptProcessListener scriptProcessListener)
 Adds a ScriptProcessListener to be notified.
Parameters
scriptProcessListenerthe listener to add
More...
 
void commandSent (@NotNull final String cmd)
 Sends a message to the script process.
Parameters
cmdthe message to send
More...
 
int compareTo (@NotNull final ScriptProcess o)
 
boolean equals (@Nullable final Object obj)
 
String getFilename ()
 Returns the script's filename.
Returns
the script's filename
More...
 
int getScriptId ()
 Returns the script ID identifying this script instance.
Returns
the script ID
More...
 
int hashCode ()
 
void killScript ()
 Kills the script process.Does nothing if the process is not running. More...
 

Detailed Description

Implements ScriptProcess for regression tests.

All functions do call Assert#fail(). Sub-classes may override some functions.

Author
Andreas Kirschbaum

Definition at line 35 of file TestScriptProcess.java.

Member Function Documentation

◆ addScriptProcessListener()

void com.realtime.crossfire.jxclient.test.TestScriptProcess.addScriptProcessListener ( @NotNull final ScriptProcessListener  scriptProcessListener)

Adds a ScriptProcessListener to be notified.

Parameters
scriptProcessListenerthe listener to add

Implements com.realtime.crossfire.jxclient.scripts.ScriptProcess.

Definition at line 68 of file TestScriptProcess.java.

◆ commandSent()

void com.realtime.crossfire.jxclient.test.TestScriptProcess.commandSent ( @NotNull final String  cmd)

Sends a message to the script process.

Parameters
cmdthe message to send

Implements com.realtime.crossfire.jxclient.scripts.ScriptProcess.

Definition at line 60 of file TestScriptProcess.java.

◆ compareTo()

int com.realtime.crossfire.jxclient.test.TestScriptProcess.compareTo ( @NotNull final ScriptProcess  o)

Definition at line 84 of file TestScriptProcess.java.

◆ equals()

boolean com.realtime.crossfire.jxclient.test.TestScriptProcess.equals ( @Nullable final Object  obj)

Definition at line 101 of file TestScriptProcess.java.

◆ getFilename()

String com.realtime.crossfire.jxclient.test.TestScriptProcess.getFilename ( )

Returns the script's filename.

Returns
the script's filename

Implements com.realtime.crossfire.jxclient.scripts.ScriptProcess.

Definition at line 51 of file TestScriptProcess.java.

◆ getScriptId()

int com.realtime.crossfire.jxclient.test.TestScriptProcess.getScriptId ( )

Returns the script ID identifying this script instance.

Returns
the script ID

Implements com.realtime.crossfire.jxclient.scripts.ScriptProcess.

Definition at line 41 of file TestScriptProcess.java.

◆ hashCode()

int com.realtime.crossfire.jxclient.test.TestScriptProcess.hashCode ( )

Definition at line 93 of file TestScriptProcess.java.

◆ killScript()

void com.realtime.crossfire.jxclient.test.TestScriptProcess.killScript ( )

Kills the script process.Does nothing if the process is not running.

Implements com.realtime.crossfire.jxclient.scripts.ScriptProcess.

Definition at line 76 of file TestScriptProcess.java.


The documentation for this class was generated from the following file: