org.testng.remote.strprotocol
Class GenericMessage

java.lang.Object
  extended by org.testng.remote.strprotocol.GenericMessage
All Implemented Interfaces:
Serializable, IMessage, IStringMessage

public class GenericMessage
extends 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
See Also:
Serialized Form

Field Summary
protected  int m_messageType
           
 
Constructor Summary
GenericMessage(int type)
           
 
Method Summary
 GenericMessage addProperty(String propName, int propValue)
           
 String getMessageAsString()
           
 int getSuiteCount()
           
 int getTestCount()
           
 void setSuiteCount(int suiteCount)
           
 void setTestCount(int testCount)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_messageType

protected final int m_messageType
Constructor Detail

GenericMessage

public GenericMessage(int type)
Method Detail

getSuiteCount

public int getSuiteCount()

setSuiteCount

public void setSuiteCount(int suiteCount)

getTestCount

public int getTestCount()

setTestCount

public void setTestCount(int testCount)

addProperty

public GenericMessage addProperty(String propName,
                                  int propValue)

getMessageAsString

public String getMessageAsString()
Specified by:
getMessageAsString in interface IStringMessage
See Also:
net.noco.testng.runner.IStringMessage#getMessageAsString()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.