1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.openehealth.ipf.commons.ihe.hl7v2.definitions.pdq.v25.message;
17
18 import static org.junit.Assert.assertEquals;
19 import static org.junit.Assert.assertNotNull;
20 import static org.junit.Assert.assertTrue;
21
22 import org.junit.Test;
23
24 import ca.uhn.hl7v2.model.v25.group.RSP_K21_QUERY_RESPONSE;
25
26
27
28
29
30
31 public class RSP_K21Test {
32
33 @Test
34 public void testGetQUERY_RESPONSE(){
35
36 RSP_K21 msg = new RSP_K21();
37 RSP_K21_QUERY_RESPONSE response = msg.getQUERY_RESPONSE();
38 assertNotNull (response);
39 assertTrue(response instanceof RSP_K21_QUERY_RESPONSE);
40 }
41
42 @Test
43 public void testGetRSP_K21_QUERY_RESPONSEReps(){
44 RSP_K21 msg = new RSP_K21();
45 assertEquals(0 , msg.getQUERY_RESPONSEReps());
46 }
47
48 @Test
49 public void testGetRSP_K21_QUERY_RESPONSERepsWithParams() throws Exception {
50 RSP_K21 msg = new RSP_K21();
51 RSP_K21_QUERY_RESPONSE response = msg.getQUERY_RESPONSE(0);
52 assertNotNull (response);
53 response = msg.getQUERY_RESPONSE(1);
54 assertNotNull (response);
55 }
56 }