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:5.4, Ensure that the IUT correctly handles received testcase parametrization type incompatibility.
13 ** @verdict pass reject
14 ***************************************************/
15 module NegSem_0504_parametrization_incompatibility_001 {
17 type enumerated MyEnumeratedType {e_black, e_white}
20 type record MyRecord {
24 MyEnumeratedType field4,
29 type component GeneralComp {
34 testcase TC_NegSem_0504_parametrization_incompatibility_001 (
35 MyRecord ExpectedMatch,
36 integer p_integer := 0,
37 boolean p_boolean := true,
38 address p_address := null,
39 MyEnumeratedType p_enumerated := e_black,
40 template integer p_integerTemplate := ?
41 ) runs on GeneralComp {
43 // MyRecord cannot be built from the default p_integerTemplate parameter
44 var MyRecord ReceivedRecord := {p_integer, p_boolean, p_address, p_enumerated, p_integerTemplate};
46 if ( ReceivedRecord == ExpectedMatch ) {
58 var MyRecord DefaultValues := {
63 field5 := 1 //any number can be used here to correspond with ? matching
66 execute(TC_NegSem_0504_parametrization_incompatibility_001(DefaultValues));