/protocols/ss7/map/map-impl/src/test/java/org/mobicents/protocols/ss7/map/functional/FunctionalTestScenario.java

http://mobicents.googlecode.com/ · Java · 177 lines · 36 code · 13 blank · 128 comment · 0 complexity · 462183b697865e0e7eed1ebbd93bc349 MD5 · raw file

  1. /*
  2. * JBoss, Home of Professional Open Source
  3. * Copyright 2011, Red Hat, Inc. and individual contributors
  4. * by the @authors tag. See the copyright.txt in the distribution for a
  5. * full listing of individual contributors.
  6. *
  7. * This is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU Lesser General Public License as
  9. * published by the Free Software Foundation; either version 2.1 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This software is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with this software; if not, write to the Free
  19. * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20. * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21. */
  22. package org.mobicents.protocols.ss7.map.functional;
  23. /**
  24. * Steps of MAP functional test
  25. *
  26. * @author sergey vetyutnev
  27. *
  28. */
  29. public enum FunctionalTestScenario {
  30. /**
  31. * TC-BEGIN + ExtensionContainer + addProcessUnstructuredSSRequest
  32. * TC-CONTINUE + ExtensionContainer + addUnstructuredSSRequest
  33. * TC-END
  34. */
  35. Action_Dialog_A(0),
  36. /**
  37. * TC-BEGIN + addProcessUnstructuredSSRequest
  38. * refuse() -> TC-ABORT + MapRefuseInfo + ExtensionContainer
  39. */
  40. Action_Dialog_B(1),
  41. /**
  42. * TC-BEGIN + addProcessUnstructuredSSRequest
  43. * TC-ABORT(Reason=ACN_Not_Supprted) + alternativeApplicationContextName
  44. */
  45. Action_Dialog_C(2),
  46. /**
  47. * TC-BEGIN + addProcessUnstructuredSSRequest
  48. * TC-END + ExtensionContainer + addUnstructuredSSRequest
  49. */
  50. Action_Dialog_D(3),
  51. /**
  52. * TC-BEGIN + addProcessUnstructuredSSRequest
  53. * TC-CONTINUE + addUnstructuredSSRequest
  54. * TC-ABORT(MAP-UserAbortInfo) + ExtensionContainer
  55. */
  56. Action_Dialog_E(4),
  57. /**
  58. * TC-BEGIN + addProcessUnstructuredSSRequest
  59. * TC-ABORT(MAP-ProviderAbortInfo)
  60. */
  61. Action_Dialog_F(5),
  62. /**
  63. * TC-BEGIN + Ericsson-style MAP-OpenInfo + addProcessUnstructuredSSRequest
  64. * TC-END
  65. */
  66. Action_Dialog_Eri(6),
  67. /**
  68. * TC-BEGIN + addProcessUnstructuredSSRequest
  69. * TC-END + ReturnError(systemFailure)
  70. */
  71. Action_Component_A(11),
  72. /**
  73. * TC-BEGIN + addProcessUnstructuredSSRequest
  74. * TC-END + ReturnError(SM-DeliveryFailure + SM-DeliveryFailureCause)
  75. */
  76. Action_Component_B(12),
  77. /**
  78. * TC-BEGIN + addProcessUnstructuredSSRequest
  79. * TC-CONTINUE + ReturnResult (addProcessUnstructuredSSResponse)
  80. * TC-CONTINUE
  81. * TC-END + ReturnResultLast (addProcessUnstructuredSSResponse)
  82. */
  83. Action_Component_D(13),
  84. /**
  85. * TC-BEGIN + addProcessUnstructuredSSRequest
  86. * TC-END + Reject (invokeProblem)
  87. */
  88. Action_Component_E(14),
  89. /**
  90. * TC-BEGIN + addProcessUnstructuredSSRequest
  91. * TC-END + ReturnError(systemFailure) - using "close(true)" - so no ReturnError must be sent !
  92. */
  93. Action_Component_F(15),
  94. /**
  95. * TC-BEGIN + addProcessUnstructuredSSRequest
  96. * TC-END + Reject (generalProblem) without invokeId!
  97. */
  98. Action_Component_G(16),
  99. /**
  100. * TC-BEGIN + AlertServiceCentreRequest
  101. * TC-END
  102. */
  103. Action_Sms_AlertServiceCentre(31),
  104. /**
  105. * TC-BEGIN + MoForwardSMRequest
  106. * TC-END + MoForwardSMResponse
  107. */
  108. Action_Sms_MoForwardSM(32),
  109. /**
  110. * TC-BEGIN + MtForwardSMRequest
  111. * TC-END + MtForwardSMResponse
  112. */
  113. Action_Sms_MtForwardSM(33),
  114. /**
  115. * TC-BEGIN + SendRoutingInfoForSMRequest
  116. * TC-END + SendRoutingInfoForSMResponse + InformServiceCentreRequest
  117. */
  118. Action_Sms_SendRoutingInfoForSM(34),
  119. /**
  120. * TC-BEGIN + ReportSMDeliveryStatusRequest
  121. * TC-END + ReportSMDeliveryStatusResponse
  122. */
  123. Action_Sms_ReportSMDeliveryStatus(35),
  124. /**
  125. * TC-BEGIN + ForwardSMRequest_V2
  126. * TC-END + ForwardSMResponse_V2
  127. */
  128. Action_Sms_ForwardSM(37),
  129. /**
  130. * TC-BEGIN+INVOKE(opCode=47) -> TC-END+RRL(opCode=47) (47=reportSM-DeliveryStatus)
  131. */
  132. Action_V1_A(41),
  133. /**
  134. * TC-BEGIN+INVOKE(opCode=49) -> release()
  135. */
  136. Action_V1_B(42),
  137. /**
  138. * TC-BEGIN(empty - no components) -> TC-ABORT V1
  139. */
  140. Action_V1_C(43),
  141. /**
  142. * TC-BEGIN(unsupported opCode) -> TC-ABORT V1
  143. */
  144. Action_V1_D(44),
  145. /**
  146. * TC-BEGIN+INVOKE(opCode=46) -> TC-CONTINUE(empty) -> TC-ABORT(UserReason) (->Abort V1)
  147. */
  148. Action_V1_E(45),
  149. /**
  150. * TC-BEGIN+MtForward(Short SMS) -> TC-END+MtForward(Response)
  151. */
  152. Action_TestMsgLength_A(51),
  153. /**
  154. * TC-BEGIN -> TC-CONTINUE -> TC-CONTINUE+MtForward(Long SMS) -> TC-END+MtForward(Response)
  155. */
  156. Action_TestMsgLength_B(52);
  157. private int code;
  158. private FunctionalTestScenario(int code) {
  159. this.code = code;
  160. }
  161. public int getCode() {
  162. return this.code;
  163. }
  164. }