Class CloudFunctionTestResource
- java.lang.Object
-
- io.quarkus.google.cloud.functions.test.CloudFunctionTestResource
-
- All Implemented Interfaces:
QuarkusTestResourceConfigurableLifecycleManager<WithFunction>,QuarkusTestResourceLifecycleManager
public class CloudFunctionTestResource extends Object implements QuarkusTestResourceConfigurableLifecycleManager<WithFunction>
Test resource that starts a Google Cloud Function invoker at the beginning of the test and stops it at the end. It must be configured with theWithFunctionannotation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.quarkus.test.common.QuarkusTestResourceLifecycleManager
QuarkusTestResourceLifecycleManager.Context, QuarkusTestResourceLifecycleManager.TestInjector
-
-
Constructor Summary
Constructors Constructor Description CloudFunctionTestResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(WithFunction withFunction)voidinject(QuarkusTestResourceLifecycleManager.TestInjector testInjector)Map<String,String>start()voidstop()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.test.common.QuarkusTestResourceLifecycleManager
init, inject, order, setContext
-
-
-
-
Method Detail
-
init
public void init(WithFunction withFunction)
- Specified by:
initin interfaceQuarkusTestResourceConfigurableLifecycleManager<WithFunction>
-
start
public Map<String,String> start()
- Specified by:
startin interfaceQuarkusTestResourceLifecycleManager
-
inject
public void inject(QuarkusTestResourceLifecycleManager.TestInjector testInjector)
- Specified by:
injectin interfaceQuarkusTestResourceLifecycleManager
-
stop
public void stop()
- Specified by:
stopin interfaceQuarkusTestResourceLifecycleManager
-
-