play.test
Class WithBrowser

java.lang.Object
  extended by play.test.WithServer
      extended by play.test.WithBrowser

public class WithBrowser
extends WithServer

Provides a server and browser to JUnit tests


Field Summary
protected  TestBrowser browser
           
 
Fields inherited from class play.test.WithServer
app, port, testServer
 
Constructor Summary
WithBrowser()
           
 
Method Summary
protected  TestBrowser provideBrowser(int port)
          Override this if you want to use a different browser
 void quitBrowser()
           
protected  void start(FakeApplication fakeApplication, int port)
           
 
Methods inherited from class play.test.WithServer
start, start, stopServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

browser

protected TestBrowser browser
Constructor Detail

WithBrowser

public WithBrowser()
Method Detail

provideBrowser

protected TestBrowser provideBrowser(int port)
Override this if you want to use a different browser

Returns:
a new test browser

start

protected void start(FakeApplication fakeApplication,
                     int port)
Overrides:
start in class WithServer

quitBrowser

public void quitBrowser()