public class WithServer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected FakeApplication |
app |
protected int |
port |
protected TestServer |
testServer |
Constructor and Description |
---|
WithServer() |
Modifier and Type | Method and Description |
---|---|
protected FakeApplication |
provideFakeApplication()
Override this method to setup the fake application to use.
|
protected int |
providePort()
Override this method to setup the port to use.
|
protected void |
start()
Deprecated.
The server is automatically started before each test, you don’t need to call this method explicitly
|
protected void |
start(FakeApplication fakeApplication)
Deprecated.
The server is automatically started before each test. You can setup the fake application to use by overriding the provideFakeApplication method.
|
protected void |
start(FakeApplication fakeApplication,
int port)
Deprecated.
The server is automatically started before each test. You can setup the fake application and port to use by overriding the provideFakeApplication and providePort methods, respectively.
|
void |
startServer() |
void |
stopServer() |
protected FakeApplication app
protected int port
protected TestServer testServer
protected FakeApplication provideFakeApplication()
protected int providePort()
@Deprecated protected void start()
@Deprecated protected void start(FakeApplication fakeApplication)
@Deprecated protected void start(FakeApplication fakeApplication, int port)
public void startServer()
public void stopServer()