public class RestxServerRule extends Object implements org.junit.rules.TestRule
| Modifier and Type | Field and Description |
|---|---|
protected WebServer |
server |
protected WebServerSupplier |
webServerSupplier |
| Constructor and Description |
|---|
RestxServerRule()
Default behaviour will look into the @Provided WebServerSupplier class
|
RestxServerRule(WebServerSupplier webServerSupplier) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterServerCreated() |
protected void |
afterServerStarted() |
protected void |
afterServerStop() |
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description) |
protected void |
beforeServerStop() |
HttpTestClient |
client() |
String |
getMode() |
WebServer |
getServer() |
RestxServerRule |
setMode(String mode) |
void |
setup() |
void |
tearDown() |
protected final WebServerSupplier webServerSupplier
protected WebServer server
public RestxServerRule()
public RestxServerRule(WebServerSupplier webServerSupplier)
public HttpTestClient client()
public String getMode()
public RestxServerRule setMode(String mode)
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRulepublic WebServer getServer()
protected void afterServerCreated()
protected void afterServerStarted()
protected void beforeServerStop()
protected void afterServerStop()
Copyright © 2017. All Rights Reserved.