tigase.test
Class TestAbstract

java.lang.Object
  extended by tigase.test.TestEmpty
      extended by tigase.test.TestAbstract
All Implemented Interfaces:
TestIfc
Direct Known Subclasses:
TestAuth, TestBoshOpen, TestExtCompOpen, TestIQCommandGetConfig, TestIQCommandStop, TestIQSession, TestIQStats, TestIQVersion, TestPrivacyList, TestPrivacyListBlockMsg, TestPrivacyLongList, TestReceiveMessage, TestRegister, TestRoster, TestRosterGet, TestRosterRemoveBuddy, TestRosterSetBuddy, TestRosterSetGroup, TestSASL, TestSendMessage, TestSocket, TestSocketBosh, TestSSL, TestStreamOpen, TestTLS, TestUnregister, TestXMPPBind

public abstract class TestAbstract
extends TestEmpty

Describe class TestAbstract here. Created: Sun May 22 11:08:23 2005

Version:
$Rev: 231 $
Author:
Artur Hefczyc

Field Summary
protected  Exception exception
           
protected  Params params
           
protected  tigase.xml.Element reply
           
protected  ResultCode resultCode
           
protected  boolean timeoutOk
           
protected  Map<String,String> vars
           
 
Fields inherited from class tigase.test.TestEmpty
stanza_variables
 
Constructor Summary
TestAbstract(String[] base_xmlns, String[] implemented, String[] depends, String[] optional)
          Creates a new TestAbstract instance.
 
Method Summary
abstract  String getElementData(String element)
          Method description
 tigase.xml.Element getLastResult()
          Method description
abstract  Attribute[] getRespElementAttributes(String element)
          Method description
abstract  String[] getRespElementNames(String element)
          Method description
abstract  String[] getRespOptionalNames(String element)
          Method description
 ResultCode getResultCode()
          Describe getResultCode method here.
 String getResultMessage()
          Describe getResultMessage method here.
 boolean hasAttributes(tigase.xml.Element elem, Attribute[] attrs)
          Method description
 void init(Params params, Map<String,String> vars)
          Describe init method here.
abstract  String nextElementName(tigase.xml.Element reply)
          Method description
 void release()
          Method description
 void replyElement(tigase.xml.Element reply)
          Method description
 boolean run()
          Describe run method here.
static String substituteVars(String data, String[] vars, String[] vals)
          Method description
 
Methods inherited from class tigase.test.TestEmpty
addInput, addOutput, baseXMLNS, debug, depends, getName, implemented, optional, setHistoryCollector, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exception

protected Exception exception

params

protected Params params

reply

protected tigase.xml.Element reply

vars

protected Map<String,String> vars

timeoutOk

protected boolean timeoutOk

resultCode

protected ResultCode resultCode
Constructor Detail

TestAbstract

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

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

getElementData

public abstract String getElementData(String element)
                               throws Exception
Method description

Parameters:
element -
Returns:
Throws:
Exception

getRespElementAttributes

public abstract Attribute[] getRespElementAttributes(String element)
                                              throws Exception
Method description

Parameters:
element -
Returns:
Throws:
Exception

getRespElementNames

public abstract String[] getRespElementNames(String element)
                                      throws Exception
Method description

Parameters:
element -
Returns:
Throws:
Exception

getRespOptionalNames

public abstract String[] getRespOptionalNames(String element)
                                       throws Exception
Method description

Parameters:
element -
Returns:
Throws:
Exception

nextElementName

public abstract String nextElementName(tigase.xml.Element reply)
                                throws Exception
Method description

Parameters:
reply -
Returns:
Throws:
Exception

substituteVars

public static String substituteVars(String data,
                                    String[] vars,
                                    String[] vals)
Method description

Parameters:
data -
vars -
vals -
Returns:

getLastResult

public tigase.xml.Element getLastResult()
Method description

Specified by:
getLastResult in interface TestIfc
Overrides:
getLastResult in class TestEmpty
Returns:

getResultCode

public ResultCode getResultCode()
Describe getResultCode method here.

Specified by:
getResultCode in interface TestIfc
Overrides:
getResultCode in class TestEmpty
Returns:
an int value

getResultMessage

public String getResultMessage()
Describe getResultMessage method here.

Specified by:
getResultMessage in interface TestIfc
Overrides:
getResultMessage in class TestEmpty
Returns:
a String value

hasAttributes

public boolean hasAttributes(tigase.xml.Element elem,
                             Attribute[] attrs)
Method description

Parameters:
elem -
attrs -
Returns:

init

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

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

release

public void release()
Method description


replyElement

public void replyElement(tigase.xml.Element reply)
                  throws Exception
Method description

Parameters:
reply -
Throws:
Exception

run

public boolean run()
Describe run method here.

Specified by:
run in interface TestIfc
Overrides:
run in class TestEmpty
Returns:
a boolean value


Copyright © 2005-2012 Tigase. All Rights Reserved.