Class AbstractKubernetesTestResource<T,C extends io.fabric8.kubernetes.client.KubernetesClient>
- java.lang.Object
-
- io.quarkus.test.kubernetes.client.AbstractKubernetesTestResource<T,C>
-
- All Implemented Interfaces:
QuarkusTestResourceLifecycleManager
- Direct Known Subclasses:
KubernetesMockServerTestResource,KubernetesServerTestResource
public abstract class AbstractKubernetesTestResource<T,C extends io.fabric8.kubernetes.client.KubernetesClient> extends Object implements QuarkusTestResourceLifecycleManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.quarkus.test.common.QuarkusTestResourceLifecycleManager
QuarkusTestResourceLifecycleManager.Context, QuarkusTestResourceLifecycleManager.TestInjector
-
-
Constructor Summary
Constructors Constructor Description AbstractKubernetesTestResource()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidconfigureServer()Can be used by subclasses in order to setup the mock server before the Quarkus application startsprotected abstract TcreateServer()protected abstract CgetClient()protected abstract Class<?>getInjectedClass()protected abstract Class<? extends Annotation>getInjectionAnnotation()protected voidinitServer()voidinject(QuarkusTestResourceLifecycleManager.TestInjector testInjector)Map<String,String>start()protected booleanuseHttps()-
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, stop
-
-
-
-
Field Detail
-
server
protected T server
-
-
Method Detail
-
start
public Map<String,String> start()
- Specified by:
startin interfaceQuarkusTestResourceLifecycleManager
-
getClient
protected abstract C getClient()
-
configureServer
protected void configureServer()
Can be used by subclasses in order to setup the mock server before the Quarkus application starts
-
initServer
protected void initServer()
-
createServer
protected abstract T createServer()
-
useHttps
protected boolean useHttps()
-
inject
public void inject(QuarkusTestResourceLifecycleManager.TestInjector testInjector)
- Specified by:
injectin interfaceQuarkusTestResourceLifecycleManager
-
getInjectedClass
protected abstract Class<?> getInjectedClass()
-
getInjectionAnnotation
protected abstract Class<? extends Annotation> getInjectionAnnotation()
-
-