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

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

public class RemoveCommandTest
extends junit.framework.TestCase

Tests for RemoveCommand. In each case, the model is built, the command is created, executed, undone, and redone. The state of the model and the executability/undoability/redoability of the command are tested between each step.


Field Summary
protected  EditingDomain editingDomain
          An editing domain for for these tests.
protected  RefFactory refFactory
          The Ref factory.
protected  RefPackage refPackage
          The Ref test package.
 
Constructor Summary
RemoveCommandTest(java.lang.String name)
           
 
Method Summary
protected  void setUp()
           
static junit.framework.Test suite()
           
 void testRemoveEqualValues()
           
 void testRemoveSameValue()
           
 void testRemoveSameValues()
           
 
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

refPackage

protected RefPackage refPackage
The Ref test package.


refFactory

protected RefFactory refFactory
The Ref factory.


editingDomain

protected EditingDomain editingDomain
An editing domain for for these tests.

Constructor Detail

RemoveCommandTest

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

suite

public static junit.framework.Test suite()

setUp

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

testRemoveSameValue

public void testRemoveSameValue()

testRemoveSameValues

public void testRemoveSameValues()

testRemoveEqualValues

public void testRemoveEqualValues()

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