com.hammingweight.hammock.mocks.wireless.messaging
Class MockBinaryMessage

java.lang.Object
  extended by com.hammingweight.hammock.AMockObject
      extended by com.hammingweight.hammock.mocks.wireless.messaging.MockBinaryMessage
All Implemented Interfaces:
IHammockExceptionErrors, IMockObject, javax.wireless.messaging.BinaryMessage, javax.wireless.messaging.Message

public class MockBinaryMessage
extends AMockObject
implements javax.wireless.messaging.BinaryMessage


Field Summary
static MockMethod MTHD_GET_ADDRESS
           
static MockMethod MTHD_GET_PAYLOAD_DATA
           
static MockMethod MTHD_GET_TIMESTAMP
           
static MockMethod MTHD_SET_ADDRESS_$_STRING
           
static MockMethod MTHD_SET_PAYLOAD_DATA_$_ARRAY_BYTE
           
 
Fields inherited from interface com.hammingweight.hammock.IHammockExceptionErrors
ARGUMENT_MATCHER_ALREADY_SET, CANT_SET_VOID_RETURN_VALUE, CLASS_IS_NOT_THROWABLE, DOES_NOT_SUBCLASS_MOCK_OBJECT, HANDLER_NOT_SET, INCORRECT_MOCK_OBJECT, INCORRECT_RETURN_CLASS, INCORRECT_THROWABLE_CLASS, METHOD_CANNOT_BE_EVALUATED, METHOD_INVOKED_OUT_OF_SEQUENCE, METHOD_INVOKED_TOO_MANY_TIMES, METHOD_INVOKED_UNEXPECTED_NUMBER_OF_TIMES, NO_RETURN_VALUE, NO_RETURN_VALUE_SET, NUM_INVOCATIONS_ALREADY_SET, RETURN_VALUE_ALREADY_SET, WRONG_ARGUMENT_CLASS, WRONG_NUMBER_OF_ARGS
 
Constructor Summary
MockBinaryMessage()
           
MockBinaryMessage(IInvocationHandler handler)
           
 
Method Summary
 java.lang.String getAddress()
           
 byte[] getPayloadData()
           
 java.util.Date getTimestamp()
           
 void setAddress(java.lang.String arg0)
           
 void setPayloadData(byte[] arg0)
           
 
Methods inherited from class com.hammingweight.hammock.AMockObject
assertReturnNotNull, getInvocationHandler, setInvocationHandler
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_GET_ADDRESS

public static final MockMethod MTHD_GET_ADDRESS

MTHD_GET_PAYLOAD_DATA

public static final MockMethod MTHD_GET_PAYLOAD_DATA

MTHD_GET_TIMESTAMP

public static final MockMethod MTHD_GET_TIMESTAMP

MTHD_SET_ADDRESS_$_STRING

public static final MockMethod MTHD_SET_ADDRESS_$_STRING

MTHD_SET_PAYLOAD_DATA_$_ARRAY_BYTE

public static final MockMethod MTHD_SET_PAYLOAD_DATA_$_ARRAY_BYTE
Constructor Detail

MockBinaryMessage

public MockBinaryMessage()

MockBinaryMessage

public MockBinaryMessage(IInvocationHandler handler)
Method Detail

getAddress

public java.lang.String getAddress()
Specified by:
getAddress in interface javax.wireless.messaging.Message

getPayloadData

public byte[] getPayloadData()
Specified by:
getPayloadData in interface javax.wireless.messaging.BinaryMessage

getTimestamp

public java.util.Date getTimestamp()
Specified by:
getTimestamp in interface javax.wireless.messaging.Message

setAddress

public void setAddress(java.lang.String arg0)
Specified by:
setAddress in interface javax.wireless.messaging.Message

setPayloadData

public void setPayloadData(byte[] arg0)
Specified by:
setPayloadData in interface javax.wireless.messaging.BinaryMessage