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:9.1, Verify that mapping an already connected port is not allowed
13 ** @verdict pass reject
14 ***************************************************/
16 /*NOTE: see Figure 7(g): Two components (A and B). MycompA:p1 is connected to MycompB:p1.
17 * Therefore mapping MycompB to TSI port p1 is not allowed
20 module NegSem_0901_Communication_ports_008 {
24 } with {extension "internal"}
26 type component GeneralComp
31 testcase TC_NegSem_0901_Communication_ports_008() runs on GeneralComp system GeneralComp {
33 // generate test components
34 var GeneralComp MycompA;
35 var GeneralComp MycompB;
36 MycompA := GeneralComp.create;
37 MycompB := GeneralComp.create;
39 connect(MycompA:p1,MycompB:p1);
40 map(MycompB:p1,system:p1); // not allowed, since MyCompB:p1 is already connected to MyCompA:p1
46 execute(TC_NegSem_0901_Communication_ports_008());