|
||||||||||
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.UnsetCommandTest
public class UnsetCommandTest
Tests for unsetting use of SetCommand. 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, which includes all the various combinations of bidirectionality, multiplicity, and containment in references. |
protected URefFactory |
uRefFactory
The URefFactory. |
protected URefPackage |
uRefPackage
Another version of the Ref test package, where all the features are unsettable. |
Constructor Summary | |
---|---|
UnsetCommandTest(java.lang.String name)
|
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 URefPackage uRefPackage
protected URefFactory uRefFactory
protected EditingDomain editingDomain
Constructor Detail |
---|
public UnsetCommandTest(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 testAttribute1()
public void testNullAttribute1()
public void testAttributeMany()
public void testEmptyAttributeMany()
public void testUnsettableAttribute1()
public void testUnsetUnsettableAttribute1()
public void testNullUnsettableAttribute1()
public void testUnsettableAttributeMany()
public void testUnsetUnsettableAttributeMany()
public void testEmptyUnsettableAttributeMany()
public void testContainment1()
public void testNullContainment1()
public void testContainmentMany()
public void testEmptyContainmentMany()
public void testUnsettableContainment1()
public void testUnsetUnsettableContainment1()
public void testNullUnsettableContainment1()
public void testUnsettableContainmentMany()
public void testEmptyUnsettableContainmentMany()
public void testUnsetUnsettableContainmentMany()
public void testReference1ToMany()
public void testNullReference1ToMany()
public void testUnsettableReference1ToMany()
public void testUnsetUnsettableReference1ToMany()
public void testNullUnsettableReference1ToMany()
public void testInUnsettableMany()
protected void assertFeatureUnset(EObject owner, EStructuralFeature feature)
protected void assertFeatureSet(EObject owner, EStructuralFeature feature, java.lang.Object value)
protected void assertFeatureSet(EObject owner, EStructuralFeature feature, java.lang.Object[] values)
protected void assertOppositeSet(EObject owner, EStructuralFeature feature, java.lang.Object value)
|
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 |