|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.eclipse.emf.test.edit.command.DeleteCommandTest
public class DeleteCommandTest
Tests for DeleteCommand. 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. |
protected Resource |
resource
The resource, from the editing domain's resource set, that will contain the objects. |
protected TreeFactory |
treeFactory
The Tree factory. |
protected TreePackage |
treePackage
The Tree test package. |
Constructor Summary | |
---|---|
DeleteCommandTest(java.lang.String name)
|
Method Summary | |
---|---|
protected void |
setUp()
|
static junit.framework.Test |
suite()
|
void |
testDeleteObjectFromBidirectionalLists()
|
void |
testDeleteObjectFromList()
|
void |
testDeleteObjectsWithManyReferences()
|
void |
testDeleteObjectWithContents()
|
void |
testDeleteSingleObject()
|
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 |
---|
protected RefPackage refPackage
protected RefFactory refFactory
protected TreePackage treePackage
protected TreeFactory treeFactory
protected EditingDomain editingDomain
protected Resource resource
Constructor Detail |
---|
public DeleteCommandTest(java.lang.String name)
Method Detail |
---|
public static junit.framework.Test suite()
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
public void testDeleteSingleObject()
public void testDeleteObjectFromList()
public void testDeleteObjectFromBidirectionalLists()
public void testDeleteObjectsWithManyReferences()
public void testDeleteObjectWithContents()
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |