Java Doc for JUnitShell.java in  » Ajax » GWT » com » google » gwt » junit » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » GWT » com.google.gwt.junit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.google.gwt.dev.GWTShell
   com.google.gwt.junit.JUnitShell

JUnitShell
public class JUnitShell extends GWTShell (Code)
This class is responsible for hosting JUnit test case execution. There are three main pieces to the JUnit system.
  • Test environment
  • Client classes
  • Server classes

The test environment consists of this class and the non-translatable version of com.google.gwt.junit.client.GWTTestCase . These two classes integrate directly into the real JUnit test process.

The client classes consist of the translatable version of com.google.gwt.junit.client.GWTTestCase , translatable JUnit classes, and the user's own com.google.gwt.junit.client.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.





Method Summary
 voidcompileForWebMode(String moduleName, String userAgentString)
    
protected  StringdoGetDefaultLogLevel()
    
protected  ModuleDefdoLoadModule(TreeLogger logger, String moduleName)
     Overrides the default module loading behavior.
protected  booleandoShouldCheckForUpdates()
     Never check for updates in JUnit mode.
protected  ArgHandlerPortgetArgHandlerPort()
    
public static  JUnitMessageQueuegetMessageQueue()
     Called by com.google.gwt.junit.server.JUnitHostImpl to get an interface into the test process.
public static  BenchmarkReportgetReport()
     Called by com.google.gwt.junit.rebind.JUnitTestCaseStubGenerator to add test meta data to the test report.
public  TreeLoggergetTopLogger()
    
protected  voidinitializeLogger()
    
protected  booleannotDone()
     Overrides GWTShell.notDone to wait for the currently-running test to complete.
public static  voidrunTest(String moduleName, TestCase testCase, TestResult testResult)
     Entry point for com.google.gwt.junit.client.GWTTestCase .



Method Detail
compileForWebMode
void compileForWebMode(String moduleName, String userAgentString) throws UnableToCompleteException(Code)



doGetDefaultLogLevel
protected String doGetDefaultLogLevel()(Code)



doLoadModule
protected ModuleDef doLoadModule(TreeLogger logger, String moduleName) throws UnableToCompleteException(Code)
Overrides the default module loading behavior. Clears any existing entry points and adds an entry point for the class being tested. This test class is then rebound to a generated subclass.



doShouldCheckForUpdates
protected boolean doShouldCheckForUpdates()(Code)
Never check for updates in JUnit mode.



getArgHandlerPort
protected ArgHandlerPort getArgHandlerPort()(Code)



getMessageQueue
public static JUnitMessageQueue getMessageQueue()(Code)
Called by com.google.gwt.junit.server.JUnitHostImpl to get an interface into the test process. The JUnitMessageQueue interface that belongs to thesingleton JUnitShell, or null if no suchsingleton exists.



getReport
public static BenchmarkReport getReport()(Code)
Called by com.google.gwt.junit.rebind.JUnitTestCaseStubGenerator to add test meta data to the test report. The BenchmarkReport that belongs to the singleton JUnitShell, or null if no such singleton exists.



getTopLogger
public TreeLogger getTopLogger()(Code)



initializeLogger
protected void initializeLogger()(Code)



notDone
protected boolean notDone()(Code)
Overrides GWTShell.notDone to wait for the currently-running test to complete.



runTest
public static void runTest(String moduleName, TestCase testCase, TestResult testResult) throws UnableToCompleteException(Code)
Entry point for com.google.gwt.junit.client.GWTTestCase . Gets or creates the singleton JUnitShell and invokes its JUnitShell.runTestImpl(String,TestCase,TestResult) .



Fields inherited from com.google.gwt.dev.GWTShell
final protected Display display(Code)(Java Doc)
protected File outDir(Code)(Java Doc)

Methods inherited from com.google.gwt.dev.GWTShell
public void addStartupURL(String url)(Code)(Java Doc)
public static String checkHost(String hostUnderConsideration, Set<String> hosts)(Code)(Java Doc)
public void closeAllBrowserWindows()(Code)(Java Doc)
protected void compile(TreeLogger logger, ModuleDef moduleDef) throws UnableToCompleteException(Code)(Java Doc)
public static String computeHostRegex(String url)(Code)(Java Doc)
protected ShellModuleSpaceHost doCreateShellModuleSpaceHost(TreeLogger logger, TypeOracle typeOracle, ModuleDef moduleDef, File genDir, File outDir)(Code)(Java Doc)
protected String doGetDefaultLogLevel()(Code)(Java Doc)
protected ModuleDef doLoadModule(TreeLogger logger, String moduleName) throws UnableToCompleteException(Code)(Java Doc)
protected boolean doShouldCheckForUpdates()(Code)(Java Doc)
public static String formatRules(Set<String> invalidHttpHosts)(Code)(Java Doc)
protected ArgHandlerPort getArgHandlerPort()(Code)(Java Doc)
protected BrowserWidgetHost getBrowserHost()(Code)(Java Doc)
public File getGenDir()(Code)(Java Doc)
public static Image[] getIcons()(Code)(Java Doc)
public Type getLogLevel()(Code)(Java Doc)
public File getOutDir()(Code)(Java Doc)
public int getPort()(Code)(Java Doc)
public TreeLogger getTopLogger()(Code)(Java Doc)
public boolean hasBrowserWindowsOpen()(Code)(Java Doc)
protected void initializeLogger()(Code)(Java Doc)
protected boolean isHeadless()(Code)(Java Doc)
public void launchStartupUrls(TreeLogger logger)(Code)(Java Doc)
public static void main(String[] args)(Code)(Java Doc)
public String normalizeURL(String unknownUrlText)(Code)(Java Doc)
protected boolean notDone()(Code)(Java Doc)
public BrowserWidget openNewBrowserWindow() throws UnableToCompleteException(Code)(Java Doc)
protected void pumpEventLoop()(Code)(Java Doc)
public void run()(Code)(Java Doc)
public void setCompilerOptions(JJSOptions options)(Code)(Java Doc)
public void setGenDir(File genDir)(Code)(Java Doc)
protected void setHeadless(boolean headlessMode)(Code)(Java Doc)
public void setLogLevel(Type level)(Code)(Java Doc)
public void setOutDir(File outDir)(Code)(Java Doc)
public void setPort(int port)(Code)(Java Doc)
public void setRunTomcat(boolean run)(Code)(Java Doc)
protected void shutDown()(Code)(Java Doc)
protected boolean startUp()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.