tigase.test
Class TestEmpty

java.lang.Object
  extended by 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: 214 $
Author:
Artur Hefczyc

Field Summary
protected static Map<String,String> stanza_variables
          Stanza variables are gathered from stanzas received from the server.
 
Constructor Summary
TestEmpty(String[] base_xmlns, String[] implemented, String[] depends, String[] optional)
          Creates a new TestEmpty instance.
 
Method Summary
 void addInput(String input)
          Describe getHistory method here.
 void addOutput(String output)
          Method description
 String[] baseXMLNS()
          Describe baseXMLNS method here.
 void debug(String msg)
          Method description
 String[] depends()
          Describe depends method here.
 tigase.xml.Element getLastResult()
          Describe getLastResult method here.
 String getName()
          Method description
 ResultCode getResultCode()
          Describe getResultCode method here.
 String getResultMessage()
          Describe getResultMessage method here.
 String[] implemented()
          Describe implemented method here.
 void init(Params params, Map<String,String> vars)
          Describe init method here.
 String[] optional()
          Describe optional method here.
 boolean run()
          Describe run method here.
 void setHistoryCollector(HistoryCollectorIfc histColl)
          Method description
 void setName(String testName)
          Method description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface tigase.test.TestIfc
release
 

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.

Constructor Detail

TestEmpty

public TestEmpty(String[] base_xmlns,
                 String[] implemented,
                 String[] depends,
                 String[] optional)
Creates a new TestEmpty instance.

Parameters:
base_xmlns -
implemented -
depends -
optional -
Method Detail

addInput

public void addInput(String input)
Describe getHistory method here.

Parameters:
input -

addOutput

public void addOutput(String output)
Method description

Parameters:
output -

baseXMLNS

public String[] baseXMLNS()
Describe baseXMLNS method here.

Specified by:
baseXMLNS in interface TestIfc
Returns:
a String[] value

debug

public void debug(String msg)
Method description

Parameters:
msg -

depends

public String[] depends()
Describe depends method here.

Specified by:
depends in interface TestIfc
Returns:
a String[] value

getLastResult

public tigase.xml.Element getLastResult()
Describe getLastResult method here.

Specified by:
getLastResult in interface TestIfc
Returns:
an Element value

getName

public String getName()
Method description

Specified by:
getName in interface TestIfc
Returns:

getResultCode

public ResultCode getResultCode()
Describe getResultCode method here.

Specified by:
getResultCode in interface TestIfc
Returns:
an int value

getResultMessage

public String getResultMessage()
Describe getResultMessage method here.

Specified by:
getResultMessage in interface TestIfc
Returns:
a String value

implemented

public String[] implemented()
Describe implemented method here.

Specified by:
implemented in interface TestIfc
Returns:
a String[] value

init

public void init(Params params,
                 Map<String,String> vars)
Describe init method here.

Specified by:
init in interface TestIfc
Parameters:
params - a Params value
vars -

optional

public String[] optional()
Describe optional method here.

Specified by:
optional in interface TestIfc
Returns:
a String[] value

run

public boolean run()
Describe run method here.

Specified by:
run in interface TestIfc
Returns:
a boolean value

setHistoryCollector

public void setHistoryCollector(HistoryCollectorIfc histColl)
Method description

Specified by:
setHistoryCollector in interface TestIfc
Parameters:
histColl -

setName

public void setName(String testName)
Method description

Specified by:
setName in interface TestIfc
Parameters:
testName -


Copyright © 2005-2012 Tigase. All Rights Reserved.