public class KnativeServer
extends org.junit.rules.ExternalResource
| Modifier and Type | Field and Description |
|---|---|
protected KnativeMockServer |
mock |
| Constructor and Description |
|---|
KnativeServer() |
KnativeServer(boolean https) |
KnativeServer(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.knative.client.KnativeClient |
getKnativeClient() |
okhttp3.mockwebserver.MockWebServer |
getMockServer() |
protected KnativeMockServer mock
public KnativeServer()
public KnativeServer(boolean https)
public KnativeServer(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.knative.client.KnativeClient getKnativeClient()
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 okhttp3.mockwebserver.MockWebServer getMockServer()
Copyright © 2015–2020 Red Hat. All rights reserved.