@Before public void startServer() { if (testServer != null) { testServer.stop(); } app = provideApplication(); port = providePort(); testServer = Helpers.testServer(port, app); testServer.start(); }
/** * Override this method to setup the application to use. * * By default this will call the old {@link #provideFakeApplication() provideFakeApplication} method. * * @return The application used by the server */ protected Application provideApplication() { return provideFakeApplication(); }
@Override protected void start(FakeApplication fakeApplication, int port) { super.start(fakeApplication, port); browser = provideBrowser(port); }
protected void start() { start(Helpers.fakeApplication()); }
@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) { start(fakeApplication, Helpers$.MODULE$.testServerPort()); }
@Before public void startServer() { if (testServer != null) { testServer.stop(); } app = provideApplication(); port = providePort(); testServer = Helpers.testServer(port, app); testServer.start(); }