Package tigase.test
Class TestEmpty
- java.lang.Object
-
- tigase.test.TestEmpty
-
- All Implemented Interfaces:
TestIfc
- Direct Known Subclasses:
TestAbstract,TestCommon
public abstract class TestEmpty extends Object implements TestIfc
Describe class TestEmpty here. Created: Mon Apr 23 17:25:02 2007- Version:
- $Rev$
- Author:
- Artur Hefczyc
-
-
Field Summary
Fields Modifier and Type Field Description protected static Map<String,String>stanza_variablesStanza variables are gathered from stanzas received from the server.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInput(String input)DescribegetHistorymethod here.voidaddOutput(String output)Method descriptionString[]baseXMLNS()DescribebaseXMLNSmethod here.voiddebug(String msg)Method descriptionString[]depends()Describedependsmethod here.tigase.xml.ElementgetLastResult()DescribegetLastResultmethod here.StringgetName()Method descriptionResultCodegetResultCode()DescribegetResultCodemethod here.StringgetResultMessage()DescribegetResultMessagemethod here.String[]implemented()Describeimplementedmethod here.voidinit(Params params, Map<String,String> vars)Describeinitmethod here.String[]optional()Describeoptionalmethod here.booleanrun()Describerunmethod here.voidsetHistoryCollector(HistoryCollectorIfc histColl)Method descriptionvoidsetName(String testName)Method description
-
-
-
Field Detail
-
stanza_variables
protected static final Map<String,String> stanza_variables
Stanza variables are gathered from stanzas received from the server. In the 'expect' statement you mark location of such data with @{var-name} it is stored then in this Map and all occurrences of @{var-name} in 'send' and subsequent 'expect' stanzas gets replaced with information received from the server.
-
-
Method Detail
-
addInput
public void addInput(String input)
DescribegetHistorymethod here.- Parameters:
input-
-
addOutput
public void addOutput(String output)
Method description- Parameters:
output-
-
baseXMLNS
public String[] baseXMLNS()
DescribebaseXMLNSmethod here.
-
debug
public void debug(String msg)
Method description- Parameters:
msg-
-
depends
public String[] depends()
Describedependsmethod here.
-
getLastResult
public tigase.xml.Element getLastResult()
DescribegetLastResultmethod here.- Specified by:
getLastResultin interfaceTestIfc- Returns:
- an
Elementvalue
-
getName
public String getName()
Method description
-
getResultCode
public ResultCode getResultCode()
DescribegetResultCodemethod here.- Specified by:
getResultCodein interfaceTestIfc- Returns:
- an
intvalue
-
getResultMessage
public String getResultMessage()
DescribegetResultMessagemethod here.- Specified by:
getResultMessagein interfaceTestIfc- Returns:
- a
Stringvalue
-
implemented
public String[] implemented()
Describeimplementedmethod here.- Specified by:
implementedin interfaceTestIfc- Returns:
- a
String[]value
-
optional
public String[] optional()
Describeoptionalmethod here.
-
run
public boolean run()
Describerunmethod here.
-
setHistoryCollector
public void setHistoryCollector(HistoryCollectorIfc histColl)
Method description- Specified by:
setHistoryCollectorin interfaceTestIfc- Parameters:
histColl-
-
-