public class

RunStyleHtmlUnit

extends RunStyle
java.lang.Object
   ↳ com.google.gwt.junit.RunStyle
     ↳ com.google.gwt.junit.RunStyleHtmlUnit

Class Overview

Launches a web-mode test via HTMLUnit.

Summary

Nested Classes
class RunStyleHtmlUnit.HtmlUnitThread Runs HTMLUnit in a separate thread. 
[Expand]
Inherited Fields
From class com.google.gwt.junit.RunStyle
Public Constructors
RunStyleHtmlUnit(JUnitShell shell)
Create a RunStyle instance with the passed-in browser targets.
Public Methods
int initialize(String args)
Initialize the runstyle with any supplied arguments, and return the number of clients this runstyle controls.
void launchModule(String moduleName)
Requests initial launch of the browser.
int numBrowsers()
boolean setupMode(TreeLogger logger, boolean developmentMode)
Setup this RunStyle for the selected mode.
Protected Methods
RunStyleHtmlUnit.HtmlUnitThread createHtmlUnitThread(BrowserVersion browser, String url)
[Expand]
Inherited Methods
From class com.google.gwt.junit.RunStyle
From class java.lang.Object

Public Constructors

public RunStyleHtmlUnit (JUnitShell shell)

Create a RunStyle instance with the passed-in browser targets.

Public Methods

public int initialize (String args)

Initialize the runstyle with any supplied arguments, and return the number of clients this runstyle controls.

Parameters
args arguments passed in -runStyle option, null if none supplied
Returns
  • the number of clients, or -1 if initialization was unsuccessful

public void launchModule (String moduleName)

Requests initial launch of the browser. This should only be called once per instance of RunStyle.

Parameters
moduleName the module to run

public int numBrowsers ()

public boolean setupMode (TreeLogger logger, boolean developmentMode)

Setup this RunStyle for the selected mode.

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

Protected Methods

protected RunStyleHtmlUnit.HtmlUnitThread createHtmlUnitThread (BrowserVersion browser, String url)