/mdt-uml2-3.1.0/org.eclipse.uml2.uml.tests/src/org/eclipse/uml2/uml/tests/RegionTest.java

# · Java · 261 lines · 53 code · 22 blank · 186 comment · 0 complexity · 59f201f725b593b77a2a7d715fa87801 MD5 · raw file

  1. /*
  2. * Copyright (c) 2005, 2007 IBM Corporation and others.
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * http://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors:
  9. * IBM - initial API and implementation
  10. *
  11. * $Id: RegionTest.java,v 1.6 2007/02/14 20:06:13 khussey Exp $
  12. */
  13. package org.eclipse.uml2.uml.tests;
  14. import junit.textui.TestRunner;
  15. import org.eclipse.uml2.uml.Region;
  16. import org.eclipse.uml2.uml.UMLFactory;
  17. /**
  18. * <!-- begin-user-doc -->
  19. * A test case for the model object '<em><b>Region</b></em>'.
  20. * <!-- end-user-doc -->
  21. * <p>
  22. * The following features are tested:
  23. * <ul>
  24. * <li>{@link org.eclipse.uml2.uml.Region#getRedefinitionContexts() <em>Redefinition Context</em>}</li>
  25. * </ul>
  26. * </p>
  27. * <p>
  28. * The following operations are tested:
  29. * <ul>
  30. * <li>{@link org.eclipse.uml2.uml.RedefinableElement#validateRedefinitionContextValid(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Redefinition Context Valid</em>}</li>
  31. * <li>{@link org.eclipse.uml2.uml.RedefinableElement#validateRedefinitionConsistent(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Redefinition Consistent</em>}</li>
  32. * <li>{@link org.eclipse.uml2.uml.Region#isConsistentWith(org.eclipse.uml2.uml.RedefinableElement) <em>Is Consistent With</em>}</li>
  33. * <li>{@link org.eclipse.uml2.uml.Region#validateInitialVertex(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Initial Vertex</em>}</li>
  34. * <li>{@link org.eclipse.uml2.uml.Region#validateDeepHistoryVertex(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Deep History Vertex</em>}</li>
  35. * <li>{@link org.eclipse.uml2.uml.Region#validateShallowHistoryVertex(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Shallow History Vertex</em>}</li>
  36. * <li>{@link org.eclipse.uml2.uml.Region#validateOwned(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Owned</em>}</li>
  37. * <li>{@link org.eclipse.uml2.uml.Region#redefinitionContext() <em>Redefinition Context</em>}</li>
  38. * <li>{@link org.eclipse.uml2.uml.Region#isRedefinitionContextValid(org.eclipse.uml2.uml.Region) <em>Is Redefinition Context Valid</em>}</li>
  39. * <li>{@link org.eclipse.uml2.uml.Region#containingStateMachine() <em>Containing State Machine</em>}</li>
  40. * <li>{@link org.eclipse.uml2.uml.Region#belongsToPSM() <em>Belongs To PSM</em>}</li>
  41. * </ul>
  42. * </p>
  43. * @generated
  44. */
  45. public class RegionTest
  46. extends NamespaceTest {
  47. /**
  48. * <!-- begin-user-doc -->
  49. * <!-- end-user-doc -->
  50. * @generated
  51. */
  52. public static void main(String[] args) {
  53. TestRunner.run(RegionTest.class);
  54. }
  55. /**
  56. * Constructs a new Region test case with the given name.
  57. * <!-- begin-user-doc -->
  58. * <!-- end-user-doc -->
  59. * @generated
  60. */
  61. public RegionTest(String name) {
  62. super(name);
  63. }
  64. /**
  65. * Returns the fixture for this Region test case.
  66. * <!-- begin-user-doc -->
  67. * <!-- end-user-doc -->
  68. * @generated
  69. */
  70. @Override
  71. protected Region getFixture() {
  72. return (Region) fixture;
  73. }
  74. /**
  75. * <!-- begin-user-doc -->
  76. * <!-- end-user-doc -->
  77. * @see junit.framework.TestCase#setUp()
  78. * @generated
  79. */
  80. @Override
  81. protected void setUp()
  82. throws Exception {
  83. setFixture(UMLFactory.eINSTANCE.createRegion());
  84. }
  85. /**
  86. * <!-- begin-user-doc -->
  87. * <!-- end-user-doc -->
  88. * @see junit.framework.TestCase#tearDown()
  89. * @generated
  90. */
  91. @Override
  92. protected void tearDown()
  93. throws Exception {
  94. setFixture(null);
  95. }
  96. /**
  97. * Tests the '{@link org.eclipse.uml2.uml.Region#getRedefinitionContexts() <em>Redefinition Context</em>}' feature getter.
  98. * <!-- begin-user-doc -->
  99. * <!-- end-user-doc -->
  100. * @see org.eclipse.uml2.uml.Region#getRedefinitionContexts()
  101. * @generated
  102. */
  103. public void testGetRedefinitionContexts() {
  104. // TODO: implement this feature getter test method
  105. // Ensure that you remove @generated or mark it @generated NOT
  106. }
  107. /**
  108. * Tests the '{@link org.eclipse.uml2.uml.RedefinableElement#validateRedefinitionContextValid(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Redefinition Context Valid</em>}' operation.
  109. * <!-- begin-user-doc -->
  110. * <!-- end-user-doc -->
  111. * @see org.eclipse.uml2.uml.RedefinableElement#validateRedefinitionContextValid(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
  112. * @generated
  113. */
  114. public void testValidateRedefinitionContextValid__DiagnosticChain_Map() {
  115. // TODO: implement this feature getter test method
  116. // Ensure that you remove @generated or mark it @generated NOT
  117. }
  118. /**
  119. * Tests the '{@link org.eclipse.uml2.uml.RedefinableElement#validateRedefinitionConsistent(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Redefinition Consistent</em>}' operation.
  120. * <!-- begin-user-doc -->
  121. * <!-- end-user-doc -->
  122. * @see org.eclipse.uml2.uml.RedefinableElement#validateRedefinitionConsistent(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
  123. * @generated
  124. */
  125. public void testValidateRedefinitionConsistent__DiagnosticChain_Map() {
  126. // TODO: implement this feature getter test method
  127. // Ensure that you remove @generated or mark it @generated NOT
  128. }
  129. /**
  130. * Tests the '{@link org.eclipse.uml2.uml.RedefinableElement#isRedefinitionContextValid(org.eclipse.uml2.uml.RedefinableElement) <em>Is Redefinition Context Valid</em>}' operation.
  131. * <!-- begin-user-doc -->
  132. * <!-- end-user-doc -->
  133. * @see org.eclipse.uml2.uml.RedefinableElement#isRedefinitionContextValid(org.eclipse.uml2.uml.RedefinableElement)
  134. * @generated
  135. */
  136. public void testIsRedefinitionContextValid__RedefinableElement() {
  137. // TODO: implement this redefined operation test method
  138. // Ensure that you remove @generated or mark it @generated NOT
  139. }
  140. /**
  141. * Tests the '{@link org.eclipse.uml2.uml.Region#isConsistentWith(org.eclipse.uml2.uml.RedefinableElement) <em>Is Consistent With</em>}' operation.
  142. * <!-- begin-user-doc -->
  143. * <!-- end-user-doc -->
  144. * @see org.eclipse.uml2.uml.Region#isConsistentWith(org.eclipse.uml2.uml.RedefinableElement)
  145. * @generated
  146. */
  147. public void testIsConsistentWith__RedefinableElement() {
  148. // TODO: implement this feature getter test method
  149. // Ensure that you remove @generated or mark it @generated NOT
  150. }
  151. /**
  152. * Tests the '{@link org.eclipse.uml2.uml.Region#validateInitialVertex(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Initial Vertex</em>}' operation.
  153. * <!-- begin-user-doc -->
  154. * <!-- end-user-doc -->
  155. * @see org.eclipse.uml2.uml.Region#validateInitialVertex(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
  156. * @generated
  157. */
  158. public void testValidateInitialVertex__DiagnosticChain_Map() {
  159. // TODO: implement this feature getter test method
  160. // Ensure that you remove @generated or mark it @generated NOT
  161. }
  162. /**
  163. * Tests the '{@link org.eclipse.uml2.uml.Region#validateDeepHistoryVertex(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Deep History Vertex</em>}' operation.
  164. * <!-- begin-user-doc -->
  165. * <!-- end-user-doc -->
  166. * @see org.eclipse.uml2.uml.Region#validateDeepHistoryVertex(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
  167. * @generated
  168. */
  169. public void testValidateDeepHistoryVertex__DiagnosticChain_Map() {
  170. // TODO: implement this feature getter test method
  171. // Ensure that you remove @generated or mark it @generated NOT
  172. }
  173. /**
  174. * Tests the '{@link org.eclipse.uml2.uml.Region#validateShallowHistoryVertex(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Shallow History Vertex</em>}' operation.
  175. * <!-- begin-user-doc -->
  176. * <!-- end-user-doc -->
  177. * @see org.eclipse.uml2.uml.Region#validateShallowHistoryVertex(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
  178. * @generated
  179. */
  180. public void testValidateShallowHistoryVertex__DiagnosticChain_Map() {
  181. // TODO: implement this feature getter test method
  182. // Ensure that you remove @generated or mark it @generated NOT
  183. }
  184. /**
  185. * Tests the '{@link org.eclipse.uml2.uml.Region#validateOwned(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Owned</em>}' operation.
  186. * <!-- begin-user-doc -->
  187. * <!-- end-user-doc -->
  188. * @see org.eclipse.uml2.uml.Region#validateOwned(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
  189. * @generated
  190. */
  191. public void testValidateOwned__DiagnosticChain_Map() {
  192. // TODO: implement this feature getter test method
  193. // Ensure that you remove @generated or mark it @generated NOT
  194. }
  195. /**
  196. * Tests the '{@link org.eclipse.uml2.uml.Region#redefinitionContext() <em>Redefinition Context</em>}' operation.
  197. * <!-- begin-user-doc -->
  198. * <!-- end-user-doc -->
  199. * @see org.eclipse.uml2.uml.Region#redefinitionContext()
  200. * @generated
  201. */
  202. public void testRedefinitionContext() {
  203. // TODO: implement this feature getter test method
  204. // Ensure that you remove @generated or mark it @generated NOT
  205. }
  206. /**
  207. * Tests the '{@link org.eclipse.uml2.uml.Region#isRedefinitionContextValid(org.eclipse.uml2.uml.Region) <em>Is Redefinition Context Valid</em>}' operation.
  208. * <!-- begin-user-doc -->
  209. * <!-- end-user-doc -->
  210. * @see org.eclipse.uml2.uml.Region#isRedefinitionContextValid(org.eclipse.uml2.uml.Region)
  211. * @generated
  212. */
  213. public void testIsRedefinitionContextValid__Region() {
  214. // TODO: implement this feature getter test method
  215. // Ensure that you remove @generated or mark it @generated NOT
  216. }
  217. /**
  218. * Tests the '{@link org.eclipse.uml2.uml.Region#containingStateMachine() <em>Containing State Machine</em>}' operation.
  219. * <!-- begin-user-doc -->
  220. * <!-- end-user-doc -->
  221. * @see org.eclipse.uml2.uml.Region#containingStateMachine()
  222. * @generated
  223. */
  224. public void testContainingStateMachine() {
  225. // TODO: implement this feature getter test method
  226. // Ensure that you remove @generated or mark it @generated NOT
  227. }
  228. /**
  229. * Tests the '{@link org.eclipse.uml2.uml.Region#belongsToPSM() <em>Belongs To PSM</em>}' operation.
  230. * <!-- begin-user-doc -->
  231. * <!-- end-user-doc -->
  232. * @see org.eclipse.uml2.uml.Region#belongsToPSM()
  233. * @generated
  234. */
  235. public void testBelongsToPSM() {
  236. // TODO: implement this feature getter test method
  237. // Ensure that you remove @generated or mark it @generated NOT
  238. }
  239. } //RegionTest