conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 20_statement_and_operations_for_alt / 2005_default_handling / 200502_the_activate_operation / Sem_200502_the_activate_operation_001.ttcn
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
7 *
8 * Contributors:
9 * Adrien Kirjak – initial implementation
10 *
11 ** @version 0.0.1
12 ** @purpose 1:20.5.2, verify that activate operation can be used as standalone statement
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
15
16 // The following requirement is tested:
17 // The activate operation can be called without saving the returned default reference.
18 // This form is useful in test cases which do not require explicit deactivation
19 // of the activated default, i.e. deactivation of a default is done implicitly at
20 // MTC termination.
21
22 // Note:
23 // An activate operation saving the returned default reference is tested in the section
24 // 6.2.8.
25
26 module Sem_200502_the_activate_operation_001 {
27
28 type component GeneralComp {
29 }
30
31 altstep a() runs on GeneralComp
32 {
33 [] any port.receive {}
34 }
35
36 testcase TC_Sem_200502_the_activate_operation_001() runs on GeneralComp {
37 activate(a());
38 setverdict(pass);
39 }
40
41 control{
42 execute(TC_Sem_200502_the_activate_operation_001());
43 }
44 }
This page took 0.032349 seconds and 5 git commands to generate.