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