conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 15_templates / 1502_declaring_signature_templates / Syn_1502_DeclaringSignatureTemplates_003.ttcn
1 /******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
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 * Adrien Kirjak – initial implementation
10 *
11 ** @version 0.0.1
12 ** @purpose 1:15.2, Ensure that the basic operations call and getreply are accepted.
13 ** @verdict pass accept, noexecution
14 *****************************************************************/
15
16 module Syn_1502_DeclaringSignatureTemplates_003 {
17
18 type port MyProcedurePortType procedure {
19 inout p_Syn_1502_DeclaringSignatureTemplates_003;
20 } with {extension "internal"}
21
22 type component GeneralComp {
23 port MyProcedurePortType pt_myPort;
24 }
25
26 signature p_Syn_1502_DeclaringSignatureTemplates_003(in integer p_par1, out integer p_par2, inout integer p_par3) return integer;
27
28 template p_Syn_1502_DeclaringSignatureTemplates_003 m_myTemplate := {
29 p_par1 := 1,
30 p_par2 := 2,
31 p_par3 := 3
32 }
33
34 testcase TC_Syn_1502_DeclaringSignatureTemplates_003() runs on GeneralComp {
35
36 connect(self:pt_myPort,self:pt_myPort);
37
38 pt_myPort.call(p_Syn_1502_DeclaringSignatureTemplates_003:m_myTemplate, nowait);
39
40 pt_myPort.getcall(p_Syn_1502_DeclaringSignatureTemplates_003:m_myTemplate) // call -> getcall
41 {
42 pt_myPort.reply(p_Syn_1502_DeclaringSignatureTemplates_003:{p_par1 := 1, p_par2 := 2, p_par3 := 3} value 1); // reply -> getreply
43 }
44 pt_myPort.getreply(p_Syn_1502_DeclaringSignatureTemplates_003:m_myTemplate value 1);
45
46 setverdict(pass);
47 }
48
49 control{
50 execute(TC_Syn_1502_DeclaringSignatureTemplates_003());
51 }
52
53 }
This page took 0.03691 seconds and 5 git commands to generate.