1 /***************************************************
2 ** @author STF 451, STF 470
4 ** @purpose 1:21.1.2, Ensure that umnap operation of a system and component port works correctly
5 ** @verdict pass accept, ttcn3verdict:pass
6 ***************************************************/
8 // The following requirements are tested:
9 // The ... unmap operations perform ... the unmapping of (previously mapped) ports of
10 // test components and ports in the test system interface.
12 module Sem_210102_unmap_operation_001 {
16 } with {extension "internal"}
18 type component GeneralComp
23 function checkMapped(boolean p_stateActive) runs on GeneralComp
25 if(p.checkstate("Mapped") xor not p_stateActive) {
32 testcase TC_Sem_210102_unmap_operation_001() runs on GeneralComp system GeneralComp {
33 var GeneralComp v_ptc1 := GeneralComp.create;
35 map(self:p, system:p);
36 map(v_ptc1:p, system:p);
38 unmap(system:p, v_ptc1:p);
40 // verity that ports are really unmapped
41 checkMapped(true); // still mapped to system:p
42 v_ptc1.start(checkMapped(false)); // no active mapping
47 execute(TC_Sem_210102_unmap_operation_001());