Class MockGoogleHttpFunctionExtension
java.lang.Object
net.officefloor.server.google.function.wrap.AbstractSetupGoogleHttpFunctionJUnit<J>
net.officefloor.server.google.function.mock.AbstractMockGoogleHttpFunctionJUnit<MockGoogleHttpFunctionExtension>
net.officefloor.server.google.function.mock.MockGoogleHttpFunctionExtension
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.AfterEachCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.BeforeEachCallback,org.junit.jupiter.api.extension.Extension
public class MockGoogleHttpFunctionExtension
extends AbstractMockGoogleHttpFunctionJUnit<MockGoogleHttpFunctionExtension>
implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.AfterAllCallback
Extension for Google HttpFunction execution.-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate using theOfficeFloorHttpFunction.MockGoogleHttpFunctionExtension(Class<?> httpFunctionClass) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionvoidafterAll(org.junit.jupiter.api.extension.ExtensionContext context) voidafterEach(org.junit.jupiter.api.extension.ExtensionContext context) voidbeforeAll(org.junit.jupiter.api.extension.ExtensionContext context) voidbeforeEach(org.junit.jupiter.api.extension.ExtensionContext context) 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
-
MockGoogleHttpFunctionExtension
Instantiate.- Parameters:
httpFunctionClass-HttpFunctionClass.
-
MockGoogleHttpFunctionExtension
public MockGoogleHttpFunctionExtension()Instantiate using theOfficeFloorHttpFunction.
-
-
Method Details
-
beforeAll
- Specified by:
beforeAllin interfaceorg.junit.jupiter.api.extension.BeforeAllCallback- Throws:
Exception
-
beforeEach
- Specified by:
beforeEachin interfaceorg.junit.jupiter.api.extension.BeforeEachCallback- Throws:
Exception
-
afterEach
- Specified by:
afterEachin interfaceorg.junit.jupiter.api.extension.AfterEachCallback- Throws:
Exception
-
afterAll
- Specified by:
afterAllin interfaceorg.junit.jupiter.api.extension.AfterAllCallback- Throws:
Exception
-