public class KubernetesMockServerExtension extends Object implements org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.BeforeAllCallback
@ExtendWith(KubernetesMockExtension.class)
or through
@EnableKubernetesMock
annotationModifier and Type | Class and Description |
---|---|
static interface |
KubernetesMockServerExtension.SetTestClassField |
Constructor and Description |
---|
KubernetesMockServerExtension() |
Modifier and Type | Method and Description |
---|---|
void |
afterAll(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
afterEach(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) |
protected void |
destroy() |
protected void |
destroyStatic() |
protected Class<?> |
getClientType()
Deprecated.
no longer used
|
protected Class<?> |
getKubernetesMockServerType() |
protected void |
initializeKubernetesClientAndMockServer(Class<?> testClass,
boolean isStatic) |
protected void |
setFieldIfEqualsToProvidedType(org.junit.jupiter.api.extension.ExtensionContext context,
boolean isStatic,
Field field,
Class<?> fieldType,
KubernetesMockServerExtension.SetTestClassField setTestClassField) |
protected void |
setFieldIfKubernetesClientOrMockServer(org.junit.jupiter.api.extension.ExtensionContext context,
boolean isStatic,
Field field) |
public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context)
afterEach
in interface org.junit.jupiter.api.extension.AfterEachCallback
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
afterAll
in interface org.junit.jupiter.api.extension.AfterAllCallback
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
beforeEach
in interface org.junit.jupiter.api.extension.BeforeEachCallback
Exception
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
beforeAll
in interface org.junit.jupiter.api.extension.BeforeAllCallback
Exception
protected void setFieldIfKubernetesClientOrMockServer(org.junit.jupiter.api.extension.ExtensionContext context, boolean isStatic, Field field) throws IllegalAccessException
IllegalAccessException
protected void setFieldIfEqualsToProvidedType(org.junit.jupiter.api.extension.ExtensionContext context, boolean isStatic, Field field, Class<?> fieldType, KubernetesMockServerExtension.SetTestClassField setTestClassField) throws IllegalAccessException
IllegalAccessException
protected void initializeKubernetesClientAndMockServer(Class<?> testClass, boolean isStatic)
protected void destroy()
protected void destroyStatic()
@Deprecated protected Class<?> getClientType()
protected Class<?> getKubernetesMockServerType()
Copyright © 2015–2024 Red Hat. All rights reserved.