|
Arquillian GWT Testing extension 1.0.0.Alpha2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.dev.DevModeBase
com.google.gwt.dev.DevMode
com.google.gwt.junit.JUnitShell
public class JUnitShell
This class is responsible for hosting JUnit test case execution. There are three main pieces to the JUnit system.
The test environment consists of this class and the non-translatable version of
GWTTestCase
. These two classes integrate directly into the real JUnit test
process.
The client classes consist of the translatable version of GWTTestCase
,
translatable JUnit classes, and the user's own GWTTestCase
-derived class. The
client communicates to the server via RPC.
The server consists of ArquillianJunitHostImpl
, an RPC servlet which communicates
back to the test environment through a ArquillianJunitMessageQueue
, thus closing the loop.
Nested Class Summary | |
---|---|
static interface |
JUnitShell.Strategy
A strategy for running the test. |
Nested classes/interfaces inherited from class com.google.gwt.dev.DevMode |
---|
com.google.gwt.dev.DevMode.ArgHandlerServer, com.google.gwt.dev.DevMode.ArgHandlerStartupURLs, com.google.gwt.dev.DevMode.HostedModeOptions, com.google.gwt.dev.DevMode.HostedModeOptionsImpl |
Nested classes/interfaces inherited from class com.google.gwt.dev.DevModeBase |
---|
com.google.gwt.dev.DevModeBase.ArgHandlerBindAddress, com.google.gwt.dev.DevModeBase.ArgHandlerBlacklist, com.google.gwt.dev.DevModeBase.ArgHandlerCodeServerPort, com.google.gwt.dev.DevModeBase.ArgHandlerLogDir, com.google.gwt.dev.DevModeBase.ArgHandlerNoServerFlag, com.google.gwt.dev.DevModeBase.ArgHandlerPort, com.google.gwt.dev.DevModeBase.ArgHandlerRemoteUI, com.google.gwt.dev.DevModeBase.ArgHandlerWhitelist, com.google.gwt.dev.DevModeBase.HostedModeBaseOptions, com.google.gwt.dev.DevModeBase.HostedModeBaseOptionsImpl, com.google.gwt.dev.DevModeBase.OptionBindAddress, com.google.gwt.dev.DevModeBase.OptionCodeServerPort, com.google.gwt.dev.DevModeBase.OptionLogDir, com.google.gwt.dev.DevModeBase.OptionNoServer, com.google.gwt.dev.DevModeBase.OptionPort, com.google.gwt.dev.DevModeBase.OptionRemoteUI, com.google.gwt.dev.DevModeBase.OptionStartupURLs, com.google.gwt.dev.DevModeBase.UiBrowserWidgetHostImpl |
Field Summary |
---|
Fields inherited from class com.google.gwt.dev.DevMode |
---|
options |
Fields inherited from class com.google.gwt.dev.DevModeBase |
---|
baseLogLevelForUI, bindAddress, codeServerPort, connectAddress, isHttps, listener, ui |
Method Summary | |
---|---|
void |
_setPort(int port)
|
protected long |
checkForUpdatesInterval()
Check for updates once a minute. |
protected boolean |
doStartup()
|
protected void |
ensureCodeServerListener()
|
static ArquillianJunitMessageQueue |
getMessageQueue()
Called by ArquillianJunitHostImpl to get an interface into the test process. |
com.google.gwt.dev.cfg.ModuleDef |
getModuleDef()
|
String |
getModuleUrl(String moduleName)
|
static String[] |
getRemoteUserAgents()
Get the list of remote user agents to compile. |
com.google.gwt.junit.RunStyle |
getRunStyle()
|
static JUnitShell |
getUnitTestShell()
Retrieves the JUnitShell. |
protected void |
inferStartupUrls()
|
protected com.google.gwt.dev.cfg.ModuleDef |
loadModule(com.google.gwt.core.ext.TreeLogger logger,
String moduleName,
boolean refresh)
|
static boolean |
mustNotExecuteTest(com.google.gwt.junit.client.impl.JUnitHost.TestInfo testInfo)
Checks if a testCase should not be executed. |
protected boolean |
notDone()
Checks to see if this test run is complete. |
static void |
runTest(com.google.gwt.junit.client.GWTTestCase testCase,
Class<?> testClass,
junit.framework.TestResult testResult)
|
static void |
runTest(com.google.gwt.junit.client.GWTTestCase testCase,
junit.framework.TestResult testResult)
Entry point for GWTTestCase . |
static void |
runTest(String moduleName,
junit.framework.TestCase testCase,
junit.framework.TestResult testResult)
Deprecated. use runTest(GWTTestCase, TestResult) instead |
static void |
runTest(String moduleName,
junit.framework.TestCase testCase,
junit.framework.TestResult testResult,
JUnitShell.Strategy strategy)
Deprecated. use runTest(GWTTestCase, TestResult) instead |
void |
setContextPath(String contextPath)
|
protected void |
warnAboutNoStartupUrls()
|
Methods inherited from class com.google.gwt.dev.DevMode |
---|
createOptions, doShutDownServer, doSlowStartup, doStartUpServer, getWebServerName, main, onRestartServer, produceOutput |
Methods inherited from class com.google.gwt.dev.DevModeBase |
---|
addStartupURL, doCreateShellModuleSpaceHost, doStartup, getBaseLogLevelForUI, getHost, getPort, getTopLogger, isHeadless, link, normalizeURL, onDone, processUrl, randomString, run, setDone, setHeadless, setPort, setRunTomcat, shutDown, startUp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ArquillianJunitMessageQueue getMessageQueue()
ArquillianJunitHostImpl
to get an interface into the test process.
ArquillianJunitMessageQueue
interface that belongs to the singleton JUnitShell
, or
null
if no such singleton exists.public static String[] getRemoteUserAgents()
public static boolean mustNotExecuteTest(com.google.gwt.junit.client.impl.JUnitHost.TestInfo testInfo)
testInfo
- the test info to check
public static void runTest(com.google.gwt.junit.client.GWTTestCase testCase, Class<?> testClass, junit.framework.TestResult testResult) throws com.google.gwt.core.ext.UnableToCompleteException
com.google.gwt.core.ext.UnableToCompleteException
public static void runTest(com.google.gwt.junit.client.GWTTestCase testCase, junit.framework.TestResult testResult) throws com.google.gwt.core.ext.UnableToCompleteException
GWTTestCase
. Gets or creates the singleton JUnitShell
and invokes its #runTestImpl(GWTTestCase, TestResult)
.
com.google.gwt.core.ext.UnableToCompleteException
@Deprecated public static void runTest(String moduleName, junit.framework.TestCase testCase, junit.framework.TestResult testResult) throws com.google.gwt.core.ext.UnableToCompleteException
runTest(GWTTestCase, TestResult)
instead
GWTTestCase
. Gets or creates the singleton JUnitShell
and invokes its #runTestImpl(GWTTestCase, TestResult)
.
com.google.gwt.core.ext.UnableToCompleteException
@Deprecated public static void runTest(String moduleName, junit.framework.TestCase testCase, junit.framework.TestResult testResult, JUnitShell.Strategy strategy) throws com.google.gwt.core.ext.UnableToCompleteException
runTest(GWTTestCase, TestResult)
instead
com.google.gwt.core.ext.UnableToCompleteException
public static JUnitShell getUnitTestShell()
public String getModuleUrl(String moduleName)
protected long checkForUpdatesInterval()
checkForUpdatesInterval
in class com.google.gwt.dev.DevModeBase
public com.google.gwt.junit.RunStyle getRunStyle()
protected boolean doStartup()
doStartup
in class com.google.gwt.dev.DevMode
protected void ensureCodeServerListener()
ensureCodeServerListener
in class com.google.gwt.dev.DevModeBase
protected void inferStartupUrls()
inferStartupUrls
in class com.google.gwt.dev.DevMode
protected com.google.gwt.dev.cfg.ModuleDef loadModule(com.google.gwt.core.ext.TreeLogger logger, String moduleName, boolean refresh) throws com.google.gwt.core.ext.UnableToCompleteException
loadModule
in class com.google.gwt.dev.DevMode
com.google.gwt.core.ext.UnableToCompleteException
protected boolean notDone()
protected void warnAboutNoStartupUrls()
warnAboutNoStartupUrls
in class com.google.gwt.dev.DevMode
public com.google.gwt.dev.cfg.ModuleDef getModuleDef()
public void _setPort(int port)
public void setContextPath(String contextPath)
|
Arquillian GWT Testing extension 1.0.0.Alpha2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |