org.eclipse.xtext.ui.junit.editor
Class AbstractWorkbenchTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eclipse.xtext.ui.junit.editor.AbstractWorkbenchTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AbstractEditorTest

public abstract class AbstractWorkbenchTest
extends junit.framework.TestCase

Abstract base class for test classes that need access to the workbench.

Author:
Peter Friese - Initial contribution and API

Constructor Summary
AbstractWorkbenchTest()
           
AbstractWorkbenchTest(java.lang.String name)
           
 
Method Summary
protected  void closeEditors()
           
protected  void closeWelcomePage()
           
protected  org.eclipse.ui.IWorkbenchPage getActivePage()
           
protected  org.eclipse.ui.IWorkbench getWorkbench()
           
protected  org.eclipse.ui.IWorkbenchWindow getWorkbenchWindow()
           
protected  void setUp()
           
protected  void sleep(long i)
           
protected  void tearDown()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractWorkbenchTest

public AbstractWorkbenchTest()

AbstractWorkbenchTest

public AbstractWorkbenchTest(java.lang.String name)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

closeEditors

protected void closeEditors()

closeWelcomePage

protected void closeWelcomePage()
                         throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

sleep

protected void sleep(long i)
              throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

getActivePage

protected org.eclipse.ui.IWorkbenchPage getActivePage()

getWorkbenchWindow

protected org.eclipse.ui.IWorkbenchWindow getWorkbenchWindow()

getWorkbench

protected org.eclipse.ui.IWorkbench getWorkbench()