public abstract class RunStyle extends Object
Modifier and Type | Field and Description |
---|---|
protected JUnitShell |
shell
The containing shell.
|
Constructor and Description |
---|
RunStyle(JUnitShell shell)
Constructor for RunStyle.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getInterruptedHosts()
Tests whether the test was interrupted.
|
String |
getLocalHostName()
Get the host name of the local system to use in URLs.
|
protected com.google.gwt.core.ext.TreeLogger |
getLogger()
Gets the shell logger.
|
Set<Platform> |
getPlatforms()
Returns the platforms specific to this run style.
|
int |
getTries()
Returns the number of times this test should be tried to run.
|
Set<String> |
getUserAgents()
Returns user agents for this run style.
|
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(com.google.gwt.core.ext.TreeLogger logger,
boolean developmentMode)
Setup this RunStyle for the selected mode.
|
void |
setUserAgents(Set<String> userAgents)
Sets the associated user agents for this run style.
|
boolean |
shouldAutoGenerateResources()
Whether the embedded server should ever generate resources.
|
protected final JUnitShell shell
public RunStyle(JUnitShell shell)
shell
- the containing shellpublic String[] getInterruptedHosts()
public String getLocalHostName()
public Set<String> getUserAgents()
null
if unknownpublic int getTries()
public abstract int initialize(String args)
args
- arguments passed in -runStyle option, null if none suppliedpublic abstract void launchModule(String moduleName) throws com.google.gwt.core.ext.UnableToCompleteException
moduleName
- the module to runcom.google.gwt.core.ext.UnableToCompleteException
public void setTries(int tries)
tries
- number of attemptspublic void setUserAgents(Set<String> userAgents)
public boolean setupMode(com.google.gwt.core.ext.TreeLogger logger, boolean developmentMode)
logger
- TreeLogger to use for any messagesdevelopmentMode
- true if we are running in development mode rather
that web/production modepublic boolean shouldAutoGenerateResources()
protected com.google.gwt.core.ext.TreeLogger getLogger()
Copyright © 2016. All rights reserved.