Package net.officefloor.server.http.mock
Class MockProcessAwareContext
- java.lang.Object
-
- net.officefloor.server.http.mock.MockProcessAwareContext
-
- All Implemented Interfaces:
ProcessAwareContext
public class MockProcessAwareContext extends java.lang.Object implements ProcessAwareContext
MockProcessAwareContext
that just runs theProcessSafeOperation
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description MockProcessAwareContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,T extends java.lang.Throwable>
Rrun(ProcessSafeOperation<R,T> operation)
Undertakes aProcessSafeOperation
.
-
-
-
Method Detail
-
run
public <R,T extends java.lang.Throwable> R run(ProcessSafeOperation<R,T> operation) throws T extends java.lang.Throwable
Description copied from interface:ProcessAwareContext
Undertakes aProcessSafeOperation
.- Specified by:
run
in interfaceProcessAwareContext
- Type Parameters:
R
- Return type from operationT
- PossibleThrowable
type from operation.- Parameters:
operation
-ProcessSafeOperation
.- Returns:
- Return value.
- Throws:
T
- PossibleThrowable
.T extends java.lang.Throwable
-
-