Class AbstractKubernetesTestResource<T,C extends io.fabric8.kubernetes.client.KubernetesClient>

java.lang.Object
io.quarkus.test.kubernetes.client.AbstractKubernetesTestResource<T,C>
All Implemented Interfaces:
io.quarkus.test.common.QuarkusTestResourceLifecycleManager
Direct Known Subclasses:
KubernetesServerTestResource

public abstract class AbstractKubernetesTestResource<T,C extends io.fabric8.kubernetes.client.KubernetesClient> extends Object implements io.quarkus.test.common.QuarkusTestResourceLifecycleManager
  • 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
    Modifier and Type
    Field
    Description
    protected T
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Can be used by subclasses in order to setup the mock server before the Quarkus application starts
    protected abstract T
     
    protected abstract C
     
    protected abstract Class<?>
     
    protected abstract Class<? extends Annotation>
     
    protected void
     
    void
    inject(io.quarkus.test.common.QuarkusTestResourceLifecycleManager.TestInjector testInjector)
     
     
    protected boolean
     

    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 Details

    • server

      protected T server
  • Constructor Details

    • AbstractKubernetesTestResource

      public AbstractKubernetesTestResource()
  • Method Details

    • start

      public Map<String,String> start()
      Specified by:
      start in interface io.quarkus.test.common.QuarkusTestResourceLifecycleManager
    • 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(io.quarkus.test.common.QuarkusTestResourceLifecycleManager.TestInjector testInjector)
      Specified by:
      inject in interface io.quarkus.test.common.QuarkusTestResourceLifecycleManager
    • getInjectedClass

      protected abstract Class<?> getInjectedClass()
    • getInjectionAnnotation

      protected abstract Class<? extends Annotation> getInjectionAnnotation()