Package net.officefloor.woof.mock
Class MockObjectResponse<T>
- java.lang.Object
-
- net.officefloor.woof.mock.MockObjectResponse<T>
-
- All Implemented Interfaces:
ObjectResponse<T>
public class MockObjectResponse<T> extends java.lang.Object implements ObjectResponse<T>
MockObjectResponse.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description MockObjectResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetObject()Obtains the sent object.voidsend(T object)Sends theObject.
-
-
-
Method Detail
-
getObject
public T getObject()
Obtains the sent object.- Returns:
- Sent object.
-
send
public void send(T object) throws HttpException
Description copied from interface:ObjectResponseSends theObject.- Specified by:
sendin interfaceObjectResponse<T>- Parameters:
object-Objectto send as response.- Throws:
HttpException- If fails to send theObject.
-
-