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 T
getObject()
Obtains the sent object.void
send(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:ObjectResponse
Sends theObject
.- Specified by:
send
in interfaceObjectResponse<T>
- Parameters:
object
-Object
to send as response.- Throws:
HttpException
- If fails to send theObject
.
-
-