conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 09_test_configurations / 0901_communication_ports / Sem_0901_Communication_ports_011.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:9.1, Verify that a component ports can be mapped to TSI ports
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
15
16 /* NOTE: figure 6(d): Ensure that component ports can be mapped to a TSI ports */
17
18 module Sem_0901_Communication_ports_011 {
19
20 type port MyPort message {
21 inout integer
22 } with {extension "internal"}
23
24 type component GeneralComp
25 {
26 port MyPort p1,p2;
27 }
28
29 type component MyComp
30 {
31 port MyPort p1,p2;
32 }
33
34 function checkMapped() runs on MyComp
35 {
36 if(p1.checkstate("Mapped") and p2.checkstate("Mapped")) {
37 setverdict(pass,"Mapped");
38 } else {
39 setverdict(fail,"Mapped");
40 }
41 }
42
43 testcase TC_Sem_0901_Communication_ports_011() runs on MyComp system GeneralComp {
44
45 map(self:p1, system:p1);
46 map(self:p2, system:p2);
47
48 checkMapped();
49 }
50
51 control{
52 execute(TC_Sem_0901_Communication_ports_011());
53 }
54 }
This page took 0.032928 seconds and 5 git commands to generate.