Package tigase.test
Class TestAbstract
- java.lang.Object
-
- tigase.test.TestEmpty
-
- tigase.test.TestAbstract
-
- All Implemented Interfaces:
TestIfc
- Direct Known Subclasses:
TestAuth,TestBoshOpen,TestExtCompOpen,TestIQCommandGetConfig,TestIQCommandStop,TestIQSession,TestIQStats,TestIQVersion,TestPresence,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$
- Author:
- Artur Hefczyc
-
-
Field Summary
Fields Modifier and Type Field Description protected static String[]CHALLENGE_PATHField descriptionprotected static StringCOMMAND_EL_NAMEField descriptionprotected booleandisconnectOkField descriptionprotected ExceptionexceptionField descriptionprotected static String[]FIELD_VALUE_PATHField descriptionprotected static String[]IQ_COMMAND_X_PATHField descriptionprotected static StringIQ_EL_NAMEField descriptionprotected static String[]IQ_QUERY_NAME_PATHField descriptionprotected static String[]IQ_QUERY_OS_PATHField descriptionprotected static String[]IQ_QUERY_PATHField descriptionprotected static String[]IQ_QUERY_VERSION_PATHField descriptionprotected ParamsparamsField descriptionprotected static StringQUERY_EL_NAMEField descriptionprotected tigase.xml.ElementreplyField descriptionprotected ResultCoderesultCodeField descriptionprotected static String[]STREAM_MECHANISMS_PATHField descriptionprotected booleantimeoutOkField descriptionprotected Map<String,String>varsField description-
Fields inherited from class tigase.test.TestEmpty
stanza_variables
-
-
Constructor Summary
Constructors Constructor Description TestAbstract(String[] base_xmlns, String[] implemented, String[] depends, String[] optional)Creates a newTestAbstractinstance.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetElementData(String element)Method descriptiontigase.xml.ElementgetLastResult()Method descriptionabstract Attribute[]getRespElementAttributes(String element)Method descriptionabstract String[]getRespElementNames(String element)Method descriptionabstract String[]getRespOptionalNames(String element)Method descriptionResultCodegetResultCode()DescribegetResultCodemethod here.StringgetResultMessage()DescribegetResultMessagemethod here.booleanhasAttributes(tigase.xml.Element elem, Attribute[] attrs)Method descriptionvoidinit(Params params, Map<String,String> vars)Describeinitmethod here.abstract StringnextElementName(tigase.xml.Element reply)Method descriptionvoidrelease()Method descriptionvoidreplyElement(tigase.xml.Element reply)Method descriptionbooleanrun()Describerunmethod here.static StringsubstituteVars(String data, String[] vars, String[] vals)Method description
-
-
-
Field Detail
-
CHALLENGE_PATH
protected static final String[] CHALLENGE_PATH
Field description
-
COMMAND_EL_NAME
protected static final String COMMAND_EL_NAME
Field description- See Also:
- Constant Field Values
-
FIELD_VALUE_PATH
protected static final String[] FIELD_VALUE_PATH
Field description
-
IQ_EL_NAME
protected static final String IQ_EL_NAME
Field description- See Also:
- Constant Field Values
-
QUERY_EL_NAME
protected static final String QUERY_EL_NAME
Field description- See Also:
- Constant Field Values
-
IQ_QUERY_VERSION_PATH
protected static final String[] IQ_QUERY_VERSION_PATH
Field description
-
IQ_QUERY_PATH
protected static final String[] IQ_QUERY_PATH
Field description
-
IQ_QUERY_OS_PATH
protected static final String[] IQ_QUERY_OS_PATH
Field description
-
IQ_QUERY_NAME_PATH
protected static final String[] IQ_QUERY_NAME_PATH
Field description
-
IQ_COMMAND_X_PATH
protected static final String[] IQ_COMMAND_X_PATH
Field description
-
STREAM_MECHANISMS_PATH
protected static final String[] STREAM_MECHANISMS_PATH
Field description
-
exception
protected Exception exception
Field description
-
params
protected Params params
Field description
-
reply
protected tigase.xml.Element reply
Field description
-
timeoutOk
protected boolean timeoutOk
Field description
-
resultCode
protected ResultCode resultCode
Field description
-
disconnectOk
protected boolean disconnectOk
Field description
-
-
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:
getLastResultin interfaceTestIfc- Overrides:
getLastResultin classTestEmpty- Returns:
-
getResultCode
public ResultCode getResultCode()
DescribegetResultCodemethod here.- Specified by:
getResultCodein interfaceTestIfc- Overrides:
getResultCodein classTestEmpty- Returns:
- an
intvalue
-
getResultMessage
public String getResultMessage()
DescribegetResultMessagemethod here.- Specified by:
getResultMessagein interfaceTestIfc- Overrides:
getResultMessagein classTestEmpty- Returns:
- a
Stringvalue
-
hasAttributes
public boolean hasAttributes(tigase.xml.Element elem, Attribute[] attrs)Method description- Parameters:
elem-attrs-- Returns:
-
release
public void release()
Method description
-
replyElement
public void replyElement(tigase.xml.Element reply) throws ExceptionMethod description- Parameters:
reply-- Throws:
Exception
-
-