public class JUnitShell
extends com.google.gwt.dev.DevMode
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 JUnitHostImpl
, an
RPC servlet which communicates back to the test environment through a
JUnitMessageQueue
, thus closing the loop.
Modifier and Type | Class and Description |
---|---|
static interface |
JUnitShell.Strategy
A strategy for running the test.
|
com.google.gwt.dev.DevMode.ArgHandlerServer, com.google.gwt.dev.DevMode.ArgHandlerStartupURLs, com.google.gwt.dev.DevMode.ArgHandlerSuperDevMode, com.google.gwt.dev.DevMode.HostedModeOptions, com.google.gwt.dev.DevMode.HostedModeOptionsImpl, com.google.gwt.dev.DevMode.OptionSuperDevMode
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
Modifier and Type | Method and Description |
---|---|
protected long |
checkForUpdatesInterval()
Check for updates once a minute.
|
protected com.google.gwt.dev.DevMode.HostedModeOptions |
createOptions() |
protected boolean |
doStartup() |
protected void |
ensureCodeServerListener() |
com.google.gwt.dev.CompilerContext |
getCompilerContext() |
static com.google.gwt.dev.CompilerOptions |
getCompilerOptions()
Get the compiler options
|
static JUnitMessageQueue |
getMessageQueue()
Called by
JUnitHostImpl to get an
interface into the test process. |
String |
getModuleUrl(String moduleName) |
static Set<String> |
getRemoteUserAgents()
Get the set of remote user agents to compile.
|
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(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(GWTTestCase testCase,
TestResult testResult)
Entry point for
GWTTestCase . |
protected void |
warnAboutNoStartupUrls() |
doShutDownServer, doSlowStartup, doStartUpServer, getWebServerName, main, makeStartupUrl, onRestartServer, produceOutput
public static JUnitMessageQueue getMessageQueue()
JUnitHostImpl
to get an
interface into the test process.JUnitMessageQueue
interface that belongs to the
singleton JUnitShell
, or null
if no such
singleton exists.public static Set<String> getRemoteUserAgents()
public static com.google.gwt.dev.CompilerOptions getCompilerOptions()
public static boolean mustNotExecuteTest(JUnitHost.TestInfo testInfo)
testInfo
- the test info to checkpublic static void runTest(GWTTestCase testCase, 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
public com.google.gwt.dev.CompilerContext getCompilerContext()
protected long checkForUpdatesInterval()
checkForUpdatesInterval
in class com.google.gwt.dev.DevModeBase
protected com.google.gwt.dev.DevMode.HostedModeOptions createOptions()
createOptions
in class com.google.gwt.dev.DevMode
protected boolean doStartup()
doStartup
in class com.google.gwt.dev.DevMode
protected void ensureCodeServerListener()
ensureCodeServerListener
in class com.google.gwt.dev.DevMode
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
Copyright © 2016. All rights reserved.