uidesigner/com.nokia.sdt.emf.dm.tests/src/com/nokia/sdt/emf/dm/tests/IPropertyContainerTest.java
author timkelly
Mon, 06 Apr 2009 14:15:39 -0500
changeset 52 e26ecc088f24
parent 2 d760517a8095
permissions -rw-r--r--
Add tests for regressing bug 8804.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
/**
cawthron
parents:
diff changeset
     2
 * <copyright>
cawthron
parents:
diff changeset
     3
 * </copyright>
cawthron
parents:
diff changeset
     4
 *
cawthron
parents:
diff changeset
     5
 * $Id$
cawthron
parents:
diff changeset
     6
 */
cawthron
parents:
diff changeset
     7
package com.nokia.sdt.emf.dm.tests;
cawthron
parents:
diff changeset
     8
cawthron
parents:
diff changeset
     9
import com.nokia.sdt.emf.dm.DmFactory;
cawthron
parents:
diff changeset
    10
import com.nokia.sdt.emf.dm.IPropertyContainer;
cawthron
parents:
diff changeset
    11
cawthron
parents:
diff changeset
    12
import junit.framework.TestCase;
cawthron
parents:
diff changeset
    13
import junit.textui.TestRunner;
cawthron
parents:
diff changeset
    14
cawthron
parents:
diff changeset
    15
/**
cawthron
parents:
diff changeset
    16
 * <!-- begin-user-doc -->
cawthron
parents:
diff changeset
    17
 * A test case for the model object '<em><b>IProperty Container</b></em>'.
cawthron
parents:
diff changeset
    18
 * <!-- end-user-doc -->
cawthron
parents:
diff changeset
    19
 * @generated
cawthron
parents:
diff changeset
    20
 */
cawthron
parents:
diff changeset
    21
public class IPropertyContainerTest extends TestCase {
cawthron
parents:
diff changeset
    22
	/**
cawthron
parents:
diff changeset
    23
	 * The fixture for this IProperty Container test case.
cawthron
parents:
diff changeset
    24
	 * <!-- begin-user-doc -->
cawthron
parents:
diff changeset
    25
	 * <!-- end-user-doc -->
cawthron
parents:
diff changeset
    26
	 * @generated
cawthron
parents:
diff changeset
    27
	 */
cawthron
parents:
diff changeset
    28
	protected IPropertyContainer fixture = null;
cawthron
parents:
diff changeset
    29
cawthron
parents:
diff changeset
    30
	/**
cawthron
parents:
diff changeset
    31
	 * <!-- begin-user-doc -->
cawthron
parents:
diff changeset
    32
	 * <!-- end-user-doc -->
cawthron
parents:
diff changeset
    33
	 * @generated
cawthron
parents:
diff changeset
    34
	 */
cawthron
parents:
diff changeset
    35
	public static void main(String[] args) {
cawthron
parents:
diff changeset
    36
		TestRunner.run(IPropertyContainerTest.class);
cawthron
parents:
diff changeset
    37
	}
cawthron
parents:
diff changeset
    38
cawthron
parents:
diff changeset
    39
	/**
cawthron
parents:
diff changeset
    40
	 * Constructs a new IProperty Container test case with the given name.
cawthron
parents:
diff changeset
    41
	 * <!-- begin-user-doc -->
cawthron
parents:
diff changeset
    42
	 * <!-- end-user-doc -->
cawthron
parents:
diff changeset
    43
	 * @generated
cawthron
parents:
diff changeset
    44
	 */
cawthron
parents:
diff changeset
    45
	public IPropertyContainerTest(String name) {
cawthron
parents:
diff changeset
    46
		super(name);
cawthron
parents:
diff changeset
    47
	}
cawthron
parents:
diff changeset
    48
cawthron
parents:
diff changeset
    49
	/**
cawthron
parents:
diff changeset
    50
	 * Sets the fixture for this IProperty Container test case.
cawthron
parents:
diff changeset
    51
	 * <!-- begin-user-doc -->
cawthron
parents:
diff changeset
    52
	 * <!-- end-user-doc -->
cawthron
parents:
diff changeset
    53
	 * @generated
cawthron
parents:
diff changeset
    54
	 */
cawthron
parents:
diff changeset
    55
	protected void setFixture(IPropertyContainer fixture) {
cawthron
parents:
diff changeset
    56
		this.fixture = fixture;
cawthron
parents:
diff changeset
    57
	}
cawthron
parents:
diff changeset
    58
cawthron
parents:
diff changeset
    59
	/**
cawthron
parents:
diff changeset
    60
	 * Returns the fixture for this IProperty Container test case.
cawthron
parents:
diff changeset
    61
	 * <!-- begin-user-doc -->
cawthron
parents:
diff changeset
    62
	 * <!-- end-user-doc -->
cawthron
parents:
diff changeset
    63
	 * @generated
cawthron
parents:
diff changeset
    64
	 */
cawthron
parents:
diff changeset
    65
	private IPropertyContainer getFixture() {
cawthron
parents:
diff changeset
    66
		return fixture;
cawthron
parents:
diff changeset
    67
	}
cawthron
parents:
diff changeset
    68
cawthron
parents:
diff changeset
    69
	/**
cawthron
parents:
diff changeset
    70
	 * <!-- begin-user-doc -->
cawthron
parents:
diff changeset
    71
	 * <!-- end-user-doc -->
cawthron
parents:
diff changeset
    72
	 * @see junit.framework.TestCase#setUp()
cawthron
parents:
diff changeset
    73
	 * @generated
cawthron
parents:
diff changeset
    74
	 */
cawthron
parents:
diff changeset
    75
	protected void setUp() throws Exception {
cawthron
parents:
diff changeset
    76
		setFixture(DmFactory.eINSTANCE.createIPropertyContainer());
cawthron
parents:
diff changeset
    77
	}
cawthron
parents:
diff changeset
    78
cawthron
parents:
diff changeset
    79
	/**
cawthron
parents:
diff changeset
    80
	 * <!-- begin-user-doc -->
cawthron
parents:
diff changeset
    81
	 * <!-- end-user-doc -->
cawthron
parents:
diff changeset
    82
	 * @see junit.framework.TestCase#tearDown()
cawthron
parents:
diff changeset
    83
	 * @generated
cawthron
parents:
diff changeset
    84
	 */
cawthron
parents:
diff changeset
    85
	protected void tearDown() throws Exception {
cawthron
parents:
diff changeset
    86
		setFixture(null);
cawthron
parents:
diff changeset
    87
	}
cawthron
parents:
diff changeset
    88
cawthron
parents:
diff changeset
    89
} //IPropertyContainerTest