org.eclipse.emf.ecp.view.ui.editor.test
Class OpenEditorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eclipse.swtbot.swt.finder.SWTBotTestCase
              extended by org.eclipse.emf.ecp.view.ui.editor.test.ECPCommonSWTBotTest
                  extended by org.eclipse.emf.ecp.view.ui.editor.test.OpenEditorTest
All Implemented Interfaces:
junit.framework.Test

public class OpenEditorTest
extends ECPCommonSWTBotTest

Test case that renders a view, disposes it and checks whether the view is garbage collectable.

Author:
emueller, jfaltermeier

Constructor Summary
OpenEditorTest(boolean isDomainCollectable)
           
 
Method Summary
static void afterClass()
           
 void assertions(double before, double after)
          Can be overridden to add assertions at end of execution.
 org.eclipse.emf.ecore.EObject createDomainObject()
          
 VView createView()
          
static Collection<Object[]> data()
           
 void logic()
          
 
Methods inherited from class org.eclipse.emf.ecp.view.ui.editor.test.ECPCommonSWTBotTest
getDomainObject, getSWTViewCollectable, setDomainObject, setUp, test, unsetDomainObject, unsetSWTViewCollectable, usedMemory
 
Methods inherited from class org.eclipse.swtbot.swt.finder.SWTBotTestCase
assertContains, assertDoesNotContain, assertEnabled, assertMatchesRegex, assertMatchesRegex, assertMatchesRegex, assertNotEnabled, assertNotSameWidget, assertNotSameWidget, assertNotVisible, assertSameWidget, assertSameWidget, assertText, assertText, assertTextContains, assertTextContains, assertTextDoesNotContain, assertTextDoesNotContain, assertVisible, captureScreenshot, pass, runBare
 
Methods inherited from class junit.framework.TestCase
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, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, setName, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpenEditorTest

public OpenEditorTest(boolean isDomainCollectable)
Method Detail

data

public static Collection<Object[]> data()

afterClass

public static void afterClass()

logic

public void logic()

Specified by:
logic in class ECPCommonSWTBotTest
See Also:
ECPCommonSWTBotTest.logic()

assertions

public void assertions(double before,
                       double after)
Description copied from class: ECPCommonSWTBotTest
Can be overridden to add assertions at end of execution.

Overrides:
assertions in class ECPCommonSWTBotTest

createDomainObject

public org.eclipse.emf.ecore.EObject createDomainObject()

Specified by:
createDomainObject in class ECPCommonSWTBotTest
See Also:
ECPCommonSWTBotTest.createDomainObject()

createView

public VView createView()

Specified by:
createView in class ECPCommonSWTBotTest
See Also:
ECPCommonSWTBotTest.createView()


Copyright © 2014. All Rights Reserved.