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 com.google.gwt.junit.server.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.HostedModeOptions, com.google.gwt.dev.DevMode.HostedModeOptionsImplcom.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 boolean |
doStartup() |
protected void |
ensureCodeServerListener() |
static com.google.gwt.junit.JUnitMessageQueue |
getMessageQueue()
Called by
com.google.gwt.junit.server.JUnitHostImpl to get an
interface into the test process. |
String |
getModuleUrl(String moduleName) |
static String[] |
getRemoteUserAgents()
Get the list 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(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,
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 |
protected void |
warnAboutNoStartupUrls() |
createOptions, doShutDownServer, doSlowStartup, doStartUpServer, getWebServerName, main, onRestartServer, produceOutputaddStartupURL, doCreateShellModuleSpaceHost, doStartup, getBaseLogLevelForUI, getHost, getPort, getTopLogger, isHeadless, link, normalizeURL, onDone, processUrl, randomString, run, setDone, setHeadless, setPort, setRunTomcat, shutDown, startUppublic static com.google.gwt.junit.JUnitMessageQueue getMessageQueue()
com.google.gwt.junit.server.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 String[] getRemoteUserAgents()
public static boolean mustNotExecuteTest(com.google.gwt.junit.client.impl.JUnitHost.TestInfo testInfo)
testInfo - the test info to checkpublic 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) insteadGWTTestCase. 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) insteadcom.google.gwt.core.ext.UnableToCompleteExceptionprotected long checkForUpdatesInterval()
checkForUpdatesInterval in class com.google.gwt.dev.DevModeBaseprotected boolean doStartup()
doStartup in class com.google.gwt.dev.DevModeprotected void ensureCodeServerListener()
ensureCodeServerListener in class com.google.gwt.dev.DevModeBaseprotected void inferStartupUrls()
inferStartupUrls in class com.google.gwt.dev.DevModeprotected 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.DevModecom.google.gwt.core.ext.UnableToCompleteExceptionprotected boolean notDone()
protected void warnAboutNoStartupUrls()
warnAboutNoStartupUrls in class com.google.gwt.dev.DevModeCopyright © 2012-2013 The Internet Party. All Rights Reserved.