Java Doc for UITestCase.java in  » IDE-Eclipse » ui » org » eclipse » ui » tests » harness » util » 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 » IDE Eclipse » ui » org.eclipse.ui.tests.harness.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.ui.tests.harness.util.UITestCase

All known Subclasses:   org.eclipse.ui.tests.performance.BasicPerformanceTest,  org.eclipse.ui.tests.performance.ObjectContributionTest,
UITestCase
abstract public class UITestCase extends TestCase (Code)
UITestCase is a useful super class for most UI tests cases. It contains methods to create new windows and pages. It will also automatically close the test windows when the tearDown method is called.

Inner Class :class TestWindowListener implements IWindowListener

Field Summary
protected  IWorkbenchfWorkbench
    

Constructor Summary
public  UITestCase(String testName)
    

Method Summary
public  voidcloseAllPages(IWorkbenchWindow window)
     Close all pages within a window.
public  voidcloseAllTestWindows()
     Close all test windows.
protected  voiddoSetUp()
     Sets up the fixture, for example, open a network connection.
protected  voiddoTearDown()
     Tears down the fixture, for example, close a network connection.
public static  voidfail(String message, Throwable e)
     Fails the test due to the given throwable.
public static  IAdaptablegetPageInput()
     Returns the workbench page input to use for newly created windows.
protected  IWorkbenchgetWorkbench()
     Returns the workbench.
protected  voidmanageWindows(boolean manage)
     Set whether the window listener will manage opening and closing of created windows.
public  IWorkbenchPageopenTestPage(IWorkbenchWindow win)
     Open a test page with the empty perspective in a window.
public  IWorkbenchPage[]openTestPage(IWorkbenchWindow win, int pageTotal)
     Open "n" test pages with the empty perspective in a window.
public  IWorkbenchWindowopenTestWindow()
     Open a test window with the empty perspective.
public  IWorkbenchWindowopenTestWindow(String perspectiveId)
     Open a test window with the provided perspective.
protected static  voidprocessEvents()
    
final protected  voidsetUp()
     Simple implementation of setUp.
final protected  voidtearDown()
     Simple implementation of tearDown.
protected  voidtrace(String msg)
     Outputs a trace message to the trace output device, if enabled.

Field Detail
fWorkbench
protected IWorkbench fWorkbench(Code)




Constructor Detail
UITestCase
public UITestCase(String testName)(Code)




Method Detail
closeAllPages
public void closeAllPages(IWorkbenchWindow window)(Code)
Close all pages within a window.



closeAllTestWindows
public void closeAllTestWindows()(Code)
Close all test windows.



doSetUp
protected void doSetUp() throws Exception(Code)
Sets up the fixture, for example, open a network connection. This method is called before a test is executed. The default implementation does nothing. Subclasses may extend.



doTearDown
protected void doTearDown() throws Exception(Code)
Tears down the fixture, for example, close a network connection. This method is called after a test is executed. The default implementation closes all test windows, processing events both before and after doing so. Subclasses may extend.



fail
public static void fail(String message, Throwable e)(Code)
Fails the test due to the given throwable.



getPageInput
public static IAdaptable getPageInput()(Code)
Returns the workbench page input to use for newly created windows. the page input to use for newly created windows
since:
   3.1



getWorkbench
protected IWorkbench getWorkbench()(Code)
Returns the workbench. the workbench
since:
   3.1



manageWindows
protected void manageWindows(boolean manage)(Code)
Set whether the window listener will manage opening and closing of created windows.



openTestPage
public IWorkbenchPage openTestPage(IWorkbenchWindow win)(Code)
Open a test page with the empty perspective in a window.



openTestPage
public IWorkbenchPage[] openTestPage(IWorkbenchWindow win, int pageTotal)(Code)
Open "n" test pages with the empty perspective in a window.



openTestWindow
public IWorkbenchWindow openTestWindow()(Code)
Open a test window with the empty perspective.



openTestWindow
public IWorkbenchWindow openTestWindow(String perspectiveId)(Code)
Open a test window with the provided perspective.



processEvents
protected static void processEvents()(Code)



setUp
final protected void setUp() throws Exception(Code)
Simple implementation of setUp. Subclasses are prevented from overriding this method to maintain logging consistency. doSetUp() should be overriden instead.



tearDown
final protected void tearDown() throws Exception(Code)
Simple implementation of tearDown. Subclasses are prevented from overriding this method to maintain logging consistency. doTearDown() should be overriden instead.



trace
protected void trace(String msg)(Code)
Outputs a trace message to the trace output device, if enabled. By default, trace messages are sent to System.out.
Parameters:
  msg - the trace message



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