Class AbstractMockGoogleHttpFunctionJUnit<J extends AbstractMockGoogleHttpFunctionJUnit<J>>
java.lang.Object
net.officefloor.server.google.function.wrap.AbstractSetupGoogleHttpFunctionJUnit<J>
net.officefloor.server.google.function.mock.AbstractMockGoogleHttpFunctionJUnit<J>
- Direct Known Subclasses:
MockGoogleHttpFunctionExtension,MockGoogleHttpFunctionRule
public class AbstractMockGoogleHttpFunctionJUnit<J extends AbstractMockGoogleHttpFunctionJUnit<J>>
extends AbstractSetupGoogleHttpFunctionJUnit<J>
Abstract Google
HttpFunction JUnit functionality serviced by
MockHttpServer.-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate using defaultOfficeFloorHttpFunction.AbstractMockGoogleHttpFunctionJUnit(Class<?> httpFunctionClass) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionObtains theMockHttpServer.protected voidOpen theMockHttpServerfor theHttpFunction.send(MockHttpRequestBuilder request) Convenience method to send theMockHttpRequestBuilder.Methods inherited from class net.officefloor.server.google.function.wrap.AbstractSetupGoogleHttpFunctionJUnit
getHttpFunctionOfficeExtension, office, officeFloor, setupHttpFunction, teardownHttpFunction
-
Constructor Details
-
AbstractMockGoogleHttpFunctionJUnit
Instantiate.- Parameters:
httpFunctionClass-HttpFunctionClass.
-
AbstractMockGoogleHttpFunctionJUnit
public AbstractMockGoogleHttpFunctionJUnit()Instantiate using defaultOfficeFloorHttpFunction.
-
-
Method Details
-
getMockHttpServer
Obtains theMockHttpServer.- Returns:
MockHttpServer.
-
send
Convenience method to send theMockHttpRequestBuilder.- Parameters:
request-MockHttpRequestBuilder.- Returns:
MockHttpResponse.
-
openMockHttpServer
Open theMockHttpServerfor theHttpFunction.- Throws:
Exception- If fails to startMockHttpServer.
-