Class MockGoogleHttpFunctionRule
java.lang.Object
net.officefloor.server.google.function.wrap.AbstractSetupGoogleHttpFunctionJUnit<J>
net.officefloor.server.google.function.mock.AbstractMockGoogleHttpFunctionJUnit<MockGoogleHttpFunctionRule>
net.officefloor.server.google.function.mock.MockGoogleHttpFunctionRule
- All Implemented Interfaces:
org.junit.rules.TestRule
public class MockGoogleHttpFunctionRule
extends AbstractMockGoogleHttpFunctionJUnit<MockGoogleHttpFunctionRule>
implements org.junit.rules.TestRule
TestRule for Google HttpFunction execution.-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate using theOfficeFloorHttpFunction.MockGoogleHttpFunctionRule(Class<?> httpFunctionClass) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description) Methods inherited from class net.officefloor.server.google.function.mock.AbstractMockGoogleHttpFunctionJUnit
getMockHttpServer, openMockHttpServer, sendMethods inherited from class net.officefloor.server.google.function.wrap.AbstractSetupGoogleHttpFunctionJUnit
getHttpFunctionOfficeExtension, office, officeFloor, setupHttpFunction, teardownHttpFunction
-
Constructor Details
-
MockGoogleHttpFunctionRule
Instantiate.- Parameters:
httpFunctionClass-HttpFunctionClass.
-
MockGoogleHttpFunctionRule
public MockGoogleHttpFunctionRule()Instantiate using theOfficeFloorHttpFunction.
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) - Specified by:
applyin interfaceorg.junit.rules.TestRule
-