/** * Creates a new Test server listening on port defined by configuration setting "testserver.port" (defaults to 19001). * * @return the test server. */ public static TestServer testServer() { return testServer(play.api.test.Helpers.testServerPort()); }
/** * Creates a new Test server listening on port defined by configuration setting "testserver.port" (defaults to 19001) and using the given FakeApplication. */ public static TestServer testServer(Application app) { return testServer(play.api.test.Helpers.testServerPort(), app); }
/** * Creates a new Test server listening on port defined by configuration setting "testserver.port" (defaults to 19001). */ public static TestServer testServer() { return testServer(play.api.test.Helpers.testServerPort()); }
/** * Creates a new Test server listening on port defined by configuration setting "testserver.port" (defaults to 19001) and using the given Application. * * @param app the application. * @return the test server. */ public static TestServer testServer(Application app) { return testServer(play.api.test.Helpers.testServerPort(), app); }
/** * Creates a new Test server listening on port defined by configuration setting "testserver.port" (defaults to 19001) and using the given Application. * * @param app the application. * @return the test server. */ public static TestServer testServer(Application app) { return testServer(play.api.test.Helpers.testServerPort(), app); }
/** * Creates a new Test server listening on port defined by configuration setting "testserver.port" (defaults to 19001). * * @return the test server. */ public static TestServer testServer() { return testServer(play.api.test.Helpers.testServerPort()); }
@Before public void startServer() { if (testServer != null) { testServer.stop(); } app = provideApplication(); port = providePort(); testServer = Helpers.testServer(port, app); testServer.start(); }
@Before public void startServer() { if (testServer != null) { testServer.stop(); } app = provideApplication(); port = providePort(); testServer = Helpers.testServer(port, app); testServer.start(); }
@Before public void startServer() { if (testServer != null) { testServer.stop(); } app = provideApplication(); port = providePort(); testServer = Helpers.testServer(port, app); testServer.start(); }
protected void start(FakeApplication fakeApplication, int port) { this.port = port; testServer = Helpers.testServer(port, fakeApplication); testServer.start(); }