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
21 import org.junit.Test;
22 import org.openehealth.ipf.commons.ihe.hl7v2.definitions.pdq.v25.group.RSP_ZV2_QUERY_RESPONSE;
23
24
25
26
27
28
29
30 public class RSP_ZV2Test {
31
32 @Test
33 public void testGetQUERY_RESPONSE(){
34
35 RSP_ZV2 msg = new RSP_ZV2();
36 RSP_ZV2_QUERY_RESPONSE response = msg.getQUERY_RESPONSE();
37 assertNotNull (response);
38 }
39
40 @Test
41 public void testGetRSP_ZV2_QUERY_RESPONSEReps(){
42 RSP_ZV2 msg = new RSP_ZV2();
43 assertEquals(0 , msg.getQUERY_RESPONSEReps());
44 }
45
46 @Test
47 public void testGetRSP_ZV2_QUERY_RESPONSERepsWithParams() throws Exception {
48 RSP_ZV2 msg = new RSP_ZV2();
49 RSP_ZV2_QUERY_RESPONSE response = msg.getQUERY_RESPONSE(0);
50 assertNotNull (response);
51 response = msg.getQUERY_RESPONSE(1);
52 assertNotNull (response);
53
54 }
55 }