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
9 * Adrien Kirjak – initial implementation
12 ** @purpose 1:B.1.4.1, Ensure that the IUT correctly handles template matching of value length definitions
13 ** @verdict pass reject
14 ***************************************************/
16 module NegSem_B010401_length_restrictions_003 {
19 type record MessageType {
20 record of integer field1,
21 record of integer field2,
22 record of integer field3,
23 record of integer field4
26 type port loopbackPort message {
28 } with {extension "internal"}
30 type component GeneralComp {
31 port loopbackPort messagePort
34 testcase TC_NegSem_B010401_length_restrictions_003() runs on GeneralComp {
36 var MessageType v_testMessage;
38 template MessageType mw_matchingTemplate:= {
39 field1 := { permutation ( 1, 2, 3 ), * } length (4), // message length is too short
40 field2 := { (1,2),* } length (2 .. 5),
41 field3 := { permutation ( 1, 2, 3 ), ? } length (4),
42 field4 := { (1,2),? } length (2 .. 5)
52 connect(self:messagePort, self:messagePort);
53 messagePort.send(v_testMessage);
56 [] messagePort.receive(mw_matchingTemplate) {
59 [] messagePort.receive {
66 execute(TC_NegSem_B010401_length_restrictions_003());