PageRenderTime 19ms CodeModel.GetById 2ms app.highlight 11ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 23package org.mobicents.protocols.ss7.map.functional;
 24
 25/**
 26 * Steps of MAP functional test
 27 * 
 28 * @author sergey vetyutnev
 29 * 
 30 */
 31public enum FunctionalTestScenario {
 32	/**
 33	 * TC-BEGIN + ExtensionContainer + addProcessUnstructuredSSRequest
 34	 * TC-CONTINUE + ExtensionContainer + addUnstructuredSSRequest 
 35	 * TC-END
 36	 */
 37	Action_Dialog_A(0),
 38	/**
 39	 * TC-BEGIN + addProcessUnstructuredSSRequest
 40	 * refuse() -> TC-ABORT + MapRefuseInfo + ExtensionContainer
 41	 */
 42	Action_Dialog_B(1),
 43	/**
 44	 * TC-BEGIN + addProcessUnstructuredSSRequest
 45	 * TC-ABORT(Reason=ACN_Not_Supprted) + alternativeApplicationContextName 
 46	 */
 47	Action_Dialog_C(2),
 48	/**
 49	 * TC-BEGIN + addProcessUnstructuredSSRequest
 50	 * TC-END + ExtensionContainer + addUnstructuredSSRequest 
 51	 */
 52	Action_Dialog_D(3),
 53	/**
 54	 * TC-BEGIN + addProcessUnstructuredSSRequest
 55	 * TC-CONTINUE + addUnstructuredSSRequest 
 56	 * TC-ABORT(MAP-UserAbortInfo) + ExtensionContainer 
 57	 */
 58	Action_Dialog_E(4),
 59	/**
 60	 * TC-BEGIN + addProcessUnstructuredSSRequest
 61	 * TC-ABORT(MAP-ProviderAbortInfo) 
 62	 */
 63	Action_Dialog_F(5),
 64	/**
 65	 * TC-BEGIN + Ericsson-style MAP-OpenInfo + addProcessUnstructuredSSRequest
 66	 * TC-END
 67	 */
 68	Action_Dialog_Eri(6),
 69
 70	/**
 71	 * TC-BEGIN + addProcessUnstructuredSSRequest
 72	 * TC-END + ReturnError(systemFailure)  
 73	 */
 74	Action_Component_A(11),
 75	/**
 76	 * TC-BEGIN + addProcessUnstructuredSSRequest
 77	 * TC-END + ReturnError(SM-DeliveryFailure + SM-DeliveryFailureCause)  
 78	 */
 79	Action_Component_B(12),
 80	/**
 81	 * TC-BEGIN + addProcessUnstructuredSSRequest
 82	 * TC-CONTINUE + ReturnResult (addProcessUnstructuredSSResponse)
 83	 * TC-CONTINUE  
 84	 * TC-END + ReturnResultLast (addProcessUnstructuredSSResponse) 
 85	 */
 86	Action_Component_D(13),
 87	/**
 88	 * TC-BEGIN + addProcessUnstructuredSSRequest
 89	 * TC-END + Reject (invokeProblem)  
 90	 */
 91	Action_Component_E(14),
 92	/**
 93	 * TC-BEGIN + addProcessUnstructuredSSRequest
 94	 * TC-END + ReturnError(systemFailure) - using "close(true)" - so no ReturnError must be sent !   
 95	 */
 96	Action_Component_F(15),
 97	/**
 98	 * TC-BEGIN + addProcessUnstructuredSSRequest
 99	 * TC-END + Reject (generalProblem) without invokeId!  
100	 */
101	Action_Component_G(16),
102
103	/**
104	 * TC-BEGIN + AlertServiceCentreRequest
105	 * TC-END  
106	 */
107	Action_Sms_AlertServiceCentre(31),
108	/**
109	 * TC-BEGIN + MoForwardSMRequest
110	 * TC-END + MoForwardSMResponse  
111	 */
112	Action_Sms_MoForwardSM(32),
113	/**
114	 * TC-BEGIN + MtForwardSMRequest
115	 * TC-END + MtForwardSMResponse  
116	 */
117	Action_Sms_MtForwardSM(33),
118	/**
119	 * TC-BEGIN + SendRoutingInfoForSMRequest
120	 * TC-END + SendRoutingInfoForSMResponse + InformServiceCentreRequest
121	 */
122	Action_Sms_SendRoutingInfoForSM(34),
123	/**
124	 * TC-BEGIN + ReportSMDeliveryStatusRequest
125	 * TC-END + ReportSMDeliveryStatusResponse  
126	 */
127	Action_Sms_ReportSMDeliveryStatus(35),
128	/**
129	 * TC-BEGIN + ForwardSMRequest_V2
130	 * TC-END + ForwardSMResponse_V2  
131	 */
132	Action_Sms_ForwardSM(37),
133
134	/**
135	 * TC-BEGIN+INVOKE(opCode=47) -> TC-END+RRL(opCode=47) (47=reportSM-DeliveryStatus)
136	 */
137	Action_V1_A(41),
138	/**
139	 * TC-BEGIN+INVOKE(opCode=49) -> release()
140	 */
141	Action_V1_B(42),
142	/**
143	 * TC-BEGIN(empty - no components) -> TC-ABORT V1
144	 */
145	Action_V1_C(43),
146	/**
147	 * TC-BEGIN(unsupported opCode) -> TC-ABORT V1
148	 */
149	Action_V1_D(44),
150	/**
151	 * TC-BEGIN+INVOKE(opCode=46) -> TC-CONTINUE(empty) -> TC-ABORT(UserReason) (->Abort V1)
152	 */
153	Action_V1_E(45),
154
155	/**
156	 * TC-BEGIN+MtForward(Short SMS) -> TC-END+MtForward(Response)
157	 */
158	Action_TestMsgLength_A(51),
159	/**
160	 * TC-BEGIN -> TC-CONTINUE -> TC-CONTINUE+MtForward(Long SMS) -> TC-END+MtForward(Response)
161	 */
162	Action_TestMsgLength_B(52);
163	
164	
165	private int code;
166
167	private FunctionalTestScenario(int code) {
168		this.code = code;
169	}
170	
171	public int getCode() {
172		return this.code;
173	}
174
175}
176
177