org.eclipse.emf.test.edit.command
Class SetCommandListTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eclipse.emf.test.edit.command.SetCommandListTest
All Implemented Interfaces:
junit.framework.Test

public class SetCommandListTest
extends junit.framework.TestCase

More Tests for SetCommand. This exercises the cases in SetCommand.create in which a whole new list value is set. Changes are performed on an instance of the Ecore metamodel, and its state are tested after execute, undo and redo.


Field Summary
protected  CommandStack commandStack
          A stack on which the commands are executed.
protected  EditingDomain domain
          An editing domain for the tests.
 
Constructor Summary
SetCommandListTest(java.lang.String name)
           
 
Method Summary
protected  EAttribute createAttribute(java.lang.String name)
           
 void setUp()
           
static junit.framework.Test suite()
           
 void testAddAndRemove()
           
 void testInsert()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

commandStack

protected CommandStack commandStack
A stack on which the commands are executed.


domain

protected EditingDomain domain
An editing domain for the tests.

Constructor Detail

SetCommandListTest

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

suite

public static junit.framework.Test suite()

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

createAttribute

protected EAttribute createAttribute(java.lang.String name)

testInsert

public void testInsert()

testAddAndRemove

public void testAddAndRemove()

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.