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_002 {
19 type record MessageType {
28 type port loopbackPort message {
30 } with {extension "internal"}
33 type component GeneralComp {
34 port loopbackPort messagePort
37 testcase TC_NegSem_B010401_length_restrictions_002() runs on GeneralComp {
39 var MessageType v_testMessage;
41 template MessageType mw_matchingTemplate:= {
42 field1 := pattern "test s*g" length (6 .. 15),
43 field2 := '10*'B length (3 .. 5),
44 field3 := '89?AB'H length (6), //pattern is shorter than length restriction
45 field4 := pattern "tes?" length (4 .. 13),
46 field5 := '10?'B length (3 .. 5),
47 field6 := '89?ABC'H length (6)
51 field1 := "test string",
59 connect(self:messagePort, self:messagePort);
60 messagePort.send(v_testMessage);
63 [] messagePort.receive(mw_matchingTemplate) {
66 [] messagePort.receive {
73 execute(TC_NegSem_B010401_length_restrictions_002());