play.test
Class WithServer

java.lang.Object
  extended by play.test.WithServer
Direct Known Subclasses:
WithBrowser

public class WithServer
extends java.lang.Object

Provides a server to JUnit tests


Field Summary
protected  FakeApplication app
           
protected  int port
           
protected  TestServer testServer
           
 
Constructor Summary
WithServer()
           
 
Method Summary
protected  void start()
           
protected  void start(FakeApplication fakeApplication)
           
protected  void start(FakeApplication fakeApplication, int port)
           
 void stopServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

app

protected FakeApplication app

port

protected int port

testServer

protected TestServer testServer
Constructor Detail

WithServer

public WithServer()
Method Detail

start

protected void start()

start

protected void start(FakeApplication fakeApplication)

start

protected void start(FakeApplication fakeApplication,
                     int port)

stopServer

public void stopServer()