Class Overview
Launches a web-mode test via HTMLUnit.
Summary
Nested Classes |
class |
RunStyleHtmlUnit.HtmlUnitThread |
Runs HTMLUnit in a separate thread. |
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.
|
[Expand]
Inherited Methods |
From class
com.google.gwt.junit.RunStyle
String[]
|
getInterruptedHosts()
Tests whether the test was interrupted.
|
String
|
getLocalHostName()
Get the host name of the local system to use in URLs.
|
TreeLogger
|
getLogger()
Gets the shell logger.
|
int
|
getTries()
Returns the number of times this test should be tried to run.
|
abstract
int
|
initialize(String args)
Initialize the runstyle with any supplied arguments, and return the number
of clients this runstyle controls.
|
abstract
void
|
launchModule(String moduleName)
Requests initial launch of the browser.
|
void
|
setTries(int tries)
Sets the number of times a test should be tried -- it succeeds if any
attempt succeeds.
|
boolean
|
setupMode(TreeLogger logger, boolean developmentMode)
Setup this RunStyle for the selected mode.
|
boolean
|
shouldAutoGenerateResources()
Whether the embedded server should ever generate resources.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
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