conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 06_types_and_values / 0602_structured_types_and_values / 060212_addressing_entities_inside_sut / Sem_060212_AddressingEntitiesInsideSut_002.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:6.2.12, Ensure that the right port address is used
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
15 module Sem_060212_AddressingEntitiesInsideSut_002 {
16 type integer address;
17
18 type port PortType1 message {
19 address charstring;
20 inout all;
21 } with {extension "internal"}
22
23 type port PortType2 message {
24 inout all;
25 } with {extension "internal"}
26
27 type component TestCaseComp {
28 port PortType1 p1;
29 port PortType2 p2;
30 }
31
32 testcase TC_Sem_060212_AddressingEntitiesInsideSut_002() runs on TestCaseComp system TestCaseComp {
33
34 var address v_int := 1;
35 var PortType1.address v_char := "test";
36
37 map(mtc:p1, system:p1);
38 map(mtc:p2, system:p2);
39
40 // port 1 has charstring address
41 p1.send(5) to v_char;
42
43 // port 2 has integer address
44 p2.send(5) to v_int;
45 p2.send(5) to 5;
46
47 setverdict(pass);
48 }
49
50 control {
51 execute(TC_Sem_060212_AddressingEntitiesInsideSut_002());
52 }
53 }
This page took 0.065004 seconds and 5 git commands to generate.