org.eclipse.xtext.ui.junit.editor.autoedit
Class AbstractAutoEditTest

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

public abstract class AbstractAutoEditTest
extends AbstractEditorTest

Author:
Sven Efftinge - Initial contribution and API

Constructor Summary
protected AbstractAutoEditTest()
           
protected AbstractAutoEditTest(java.lang.String name)
           
 
Method Summary
protected  void assertState(java.lang.String string, XtextEditor editor)
           
protected abstract  java.lang.String getFileExtension()
           
protected  java.util.List<org.eclipse.core.resources.IFile> getFiles()
           
protected  XtextEditor openEditor(java.lang.String string)
           
protected  void pasteText(XtextEditor editor, java.lang.String text)
           
protected  void pressKey(XtextEditor editor, char c)
           
protected  void pressKeys(XtextEditor editor, java.lang.String string)
           
protected  void selectText(XtextEditor editor, int relativeToCurrentOffset, int length)
           
protected  void setUp()
           
protected  void tearDown()
           
 
Methods inherited from class org.eclipse.xtext.ui.junit.editor.AbstractEditorTest
getEditorId, openEditor
 
Methods inherited from class org.eclipse.xtext.ui.junit.editor.AbstractWorkbenchTest
closeEditors, closeWelcomePage, getActivePage, getWorkbench, getWorkbenchWindow, sleep
 
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

AbstractAutoEditTest

protected AbstractAutoEditTest()

AbstractAutoEditTest

protected AbstractAutoEditTest(java.lang.String name)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class AbstractWorkbenchTest
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class AbstractWorkbenchTest
Throws:
java.lang.Exception

getFileExtension

protected abstract java.lang.String getFileExtension()

openEditor

protected XtextEditor openEditor(java.lang.String string)
                          throws java.lang.Exception
Throws:
java.lang.Exception

assertState

protected void assertState(java.lang.String string,
                           XtextEditor editor)

selectText

protected void selectText(XtextEditor editor,
                          int relativeToCurrentOffset,
                          int length)
                   throws java.lang.Exception
Throws:
java.lang.Exception

pressKey

protected void pressKey(XtextEditor editor,
                        char c)
                 throws java.lang.Exception
Throws:
java.lang.Exception

pasteText

protected void pasteText(XtextEditor editor,
                         java.lang.String text)
                  throws java.lang.Exception
Throws:
java.lang.Exception

pressKeys

protected void pressKeys(XtextEditor editor,
                         java.lang.String string)
                  throws java.lang.Exception
Throws:
java.lang.Exception

getFiles

protected java.util.List<org.eclipse.core.resources.IFile> getFiles()