Class GoogleHttpFunctionRule
java.lang.Object
net.officefloor.server.google.function.wrap.AbstractSetupGoogleHttpFunctionJUnit<J>
net.officefloor.server.google.function.test.AbstractGoogleHttpFunctionJUnit<GoogleHttpFunctionRule>
net.officefloor.server.google.function.test.GoogleHttpFunctionRule
- All Implemented Interfaces:
org.junit.rules.TestRule
public class GoogleHttpFunctionRule
extends AbstractGoogleHttpFunctionJUnit<GoogleHttpFunctionRule>
implements org.junit.rules.TestRule
JUnit 4 rule for Google HTTP function testing.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate using theOfficeFloorHttpFunction.GoogleHttpFunctionRule(Class<?> httpFunctionClass) Instantiate with the GoogleHttpFunction. -
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.test.AbstractGoogleHttpFunctionJUnit
getHttpServerSocketOfficeFloorExtensionService, httpPort, httpsPort, openHttpServerMethods inherited from class net.officefloor.server.google.function.wrap.AbstractSetupGoogleHttpFunctionJUnit
getHttpFunctionOfficeExtension, office, officeFloor, setupHttpFunction, teardownHttpFunction
-
Constructor Details
-
GoogleHttpFunctionRule
Instantiate with the GoogleHttpFunction.- Parameters:
httpFunctionClass-HttpFunctionClass.
-
GoogleHttpFunctionRule
public GoogleHttpFunctionRule()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
-