com.google.gwt.junit
Class RunStyleHtmlUnit

java.lang.Object
  extended by com.google.gwt.junit.RunStyle
      extended by com.google.gwt.junit.RunStyleHtmlUnit

public class RunStyleHtmlUnit
extends RunStyle

Launches a web-mode test via HTMLUnit.


Constructor Summary
RunStyleHtmlUnit(JUnitShell shell)
          Create a RunStyle instance with the passed-in browser targets.
 
Method Summary
 int initialize(java.lang.String args)
          Initialize the runstyle with any supplied arguments, and return the number of clients this runstyle controls.
 void launchModule(java.lang.String moduleName)
          Requests initial launch of the browser.
 int numBrowsers()
           
 boolean setupMode(TreeLogger logger, boolean developmentMode)
          Setup this RunStyle for the selected mode.
 
Methods inherited from class com.google.gwt.junit.RunStyle
getInterruptedHosts, getLocalHostName, getTries, setTries, shouldAutoGenerateResources
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunStyleHtmlUnit

public RunStyleHtmlUnit(JUnitShell shell)
Create a RunStyle instance with the passed-in browser targets.

Method Detail

initialize

public int initialize(java.lang.String args)
Description copied from class: RunStyle
Initialize the runstyle with any supplied arguments, and return the number of clients this runstyle controls.

Specified by:
initialize in class RunStyle
Parameters:
args - arguments passed in -runStyle option, null if none supplied
Returns:
the number of clients, or -1 if initialization was unsuccessful

launchModule

public void launchModule(java.lang.String moduleName)
Description copied from class: RunStyle
Requests initial launch of the browser. This should only be called once per instance of RunStyle.

Specified by:
launchModule in class RunStyle
Parameters:
moduleName - the module to run

numBrowsers

public int numBrowsers()

setupMode

public boolean setupMode(TreeLogger logger,
                         boolean developmentMode)
Description copied from class: RunStyle
Setup this RunStyle for the selected mode.

Overrides:
setupMode in class RunStyle
Parameters:
logger - TreeLogger to use for any messages
developmentMode - true if we are running in development mode rather that web/production mode
Returns:
false if we should abort processing due to an unsupported mode or an error setting up for that mode