org.testng.remote.strprotocol
Class GenericMessage
java.lang.Object
org.testng.remote.strprotocol.GenericMessage
- All Implemented Interfaces:
- IMessage, IStringMessage
public class GenericMessage
- extends java.lang.Object
- implements IStringMessage
A generic message to be used with remote listeners.
It is described by a m_messageType
and can contain a Map
or values.
- Author:
- Alexandru Popescu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_properties
protected java.util.Map m_properties
m_messageType
protected final int m_messageType
GenericMessage
public GenericMessage(int type)
GenericMessage
public GenericMessage(int type,
java.util.Map props)
addProperty
public GenericMessage addProperty(java.lang.String propName,
java.lang.Object propValue)
addProperty
public GenericMessage addProperty(java.lang.String propName,
int propValue)
getProperty
public java.lang.String getProperty(java.lang.String propName)
getMessageAsString
public java.lang.String getMessageAsString()
- Specified by:
getMessageAsString
in interface IStringMessage
- See Also:
net.noco.testng.runner.IStringMessage#getMessageAsString()
Copyright © 2010. All Rights Reserved.