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 annotation| Modifier 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 Class<?> |
getClientType()
Deprecated.
no longer used
|
protected Class<?> |
getKubernetesMockServerType() |
protected void |
initializeKubernetesClientAndMockServer(Class<?> testClass) |
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.AfterEachCallbackpublic void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
afterAll in interface org.junit.jupiter.api.extension.AfterAllCallbackpublic void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
throws Exception
beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallbackExceptionpublic void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
throws Exception
beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallbackExceptionprotected void setFieldIfKubernetesClientOrMockServer(org.junit.jupiter.api.extension.ExtensionContext context,
boolean isStatic,
Field field)
throws IllegalAccessException
IllegalAccessExceptionprotected void setFieldIfEqualsToProvidedType(org.junit.jupiter.api.extension.ExtensionContext context,
boolean isStatic,
Field field,
Class<?> fieldType,
KubernetesMockServerExtension.SetTestClassField setTestClassField)
throws IllegalAccessException
IllegalAccessExceptionprotected void initializeKubernetesClientAndMockServer(Class<?> testClass)
protected void destroy()
@Deprecated protected Class<?> getClientType()
protected Class<?> getKubernetesMockServerType()
Copyright © 2015–2023 Red Hat. All rights reserved.