public class OpenShiftServer
extends org.junit.rules.ExternalResource
| Modifier and Type | Field and Description |
|---|---|
protected OpenShiftMockServer |
mock |
| Constructor and Description |
|---|
OpenShiftServer() |
OpenShiftServer(boolean https) |
OpenShiftServer(boolean https,
boolean crudMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
void |
before() |
io.fabric8.mockwebserver.dsl.MockServerExpectation |
expect() |
<T> void |
expectAndReturnAsJson(String path,
int code,
T body)
Deprecated.
|
void |
expectAndReturnAsString(String path,
int code,
String body)
Deprecated.
|
io.fabric8.kubernetes.client.KubernetesClient |
getKubernetesClient() |
okhttp3.mockwebserver.RecordedRequest |
getLastRequest() |
io.fabric8.openshift.client.NamespacedOpenShiftClient |
getOpenshiftClient() |
OpenShiftMockServer |
getOpenShiftMockServer() |
protected OpenShiftMockServer mock
public OpenShiftServer()
public OpenShiftServer(boolean https)
public OpenShiftServer(boolean https,
boolean crudMode)
public void before()
before in class org.junit.rules.ExternalResourcepublic void after()
after in class org.junit.rules.ExternalResourcepublic io.fabric8.kubernetes.client.KubernetesClient getKubernetesClient()
public io.fabric8.openshift.client.NamespacedOpenShiftClient getOpenshiftClient()
public io.fabric8.mockwebserver.dsl.MockServerExpectation expect()
@Deprecated public <T> void expectAndReturnAsJson(String path, int code, T body)
@Deprecated public void expectAndReturnAsString(String path, int code, String body)
public OpenShiftMockServer getOpenShiftMockServer()
public okhttp3.mockwebserver.RecordedRequest getLastRequest()
throws InterruptedException
InterruptedExceptionCopyright © 2015–2023 Red Hat. All rights reserved.