Class KubernetesServerTestResource
java.lang.Object
io.quarkus.test.kubernetes.client.AbstractKubernetesTestResource<KubernetesServer,io.fabric8.kubernetes.client.NamespacedKubernetesClient>
io.quarkus.test.kubernetes.client.KubernetesServerTestResource
- All Implemented Interfaces:
io.quarkus.test.common.QuarkusTestResourceConfigurableLifecycleManager<WithKubernetesTestServer>,io.quarkus.test.common.QuarkusTestResourceLifecycleManager
public class KubernetesServerTestResource
extends AbstractKubernetesTestResource<KubernetesServer,io.fabric8.kubernetes.client.NamespacedKubernetesClient>
implements io.quarkus.test.common.QuarkusTestResourceConfigurableLifecycleManager<WithKubernetesTestServer>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.test.common.QuarkusTestResourceLifecycleManager
io.quarkus.test.common.QuarkusTestResourceLifecycleManager.Context, io.quarkus.test.common.QuarkusTestResourceLifecycleManager.TestInjector -
Field Summary
Fields inherited from class io.quarkus.test.kubernetes.client.AbstractKubernetesTestResource
server -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCan be used by subclasses in order to setup the mock server before the Quarkus application startsprotected KubernetesServerprotected io.fabric8.kubernetes.client.NamespacedKubernetesClientprotected Class<?> protected Class<? extends Annotation> voidinit(WithKubernetesTestServer annotation) protected voidvoidstop()Methods inherited from class io.quarkus.test.kubernetes.client.AbstractKubernetesTestResource
inject, start, useHttpsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.test.common.QuarkusTestResourceLifecycleManager
init, inject, inject, order, setContext, start
-
Constructor Details
-
KubernetesServerTestResource
public KubernetesServerTestResource()
-
-
Method Details
-
init
- Specified by:
initin interfaceio.quarkus.test.common.QuarkusTestResourceConfigurableLifecycleManager<WithKubernetesTestServer>
-
getClient
protected io.fabric8.kubernetes.client.NamespacedKubernetesClient getClient()- Specified by:
getClientin classAbstractKubernetesTestResource<KubernetesServer,io.fabric8.kubernetes.client.NamespacedKubernetesClient>
-
initServer
protected void initServer()- Overrides:
initServerin classAbstractKubernetesTestResource<KubernetesServer,io.fabric8.kubernetes.client.NamespacedKubernetesClient>
-
configureServer
protected void configureServer()Description copied from class:AbstractKubernetesTestResourceCan be used by subclasses in order to setup the mock server before the Quarkus application starts- Overrides:
configureServerin classAbstractKubernetesTestResource<KubernetesServer,io.fabric8.kubernetes.client.NamespacedKubernetesClient>
-
createServer
- Specified by:
createServerin classAbstractKubernetesTestResource<KubernetesServer,io.fabric8.kubernetes.client.NamespacedKubernetesClient>
-
stop
public void stop()- Specified by:
stopin interfaceio.quarkus.test.common.QuarkusTestResourceLifecycleManager
-
getInjectedClass
- Specified by:
getInjectedClassin classAbstractKubernetesTestResource<KubernetesServer,io.fabric8.kubernetes.client.NamespacedKubernetesClient>
-
getInjectionAnnotation
- Specified by:
getInjectionAnnotationin classAbstractKubernetesTestResource<KubernetesServer,io.fabric8.kubernetes.client.NamespacedKubernetesClient>
-