Produced by Araxis Merge on 4/2/2019 9:49:01 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | JLV_JLV 2_7_2_0_0.zip\JLV_Src\jMeadows\src\test\integration\java\gov\va\med\jmeadows\dao\patient | AllergyDaoTest.java | Wed Mar 20 21:45:36 2019 UTC |
2 | JLV_JLV 2_7_2_0_0.zip\JLV_Src\jMeadows\src\test\integration\java\gov\va\med\jmeadows\dao\patient | AllergyDaoTest.java | Tue Apr 2 13:30:31 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 210 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | /** | |
2 | * Janus 4 .0 (c) | |
3 | * Copyrig ht (c) 201 1 Hawaii R esource Gr oup LLC. A ll Rights Reserved. | |
4 | * Develop ed for the Pacific T elehealth & Technolo gy Hui and the Pacif ic Joint I nformation Technolog y Center | |
5 | * Contrib utors: | |
6 | * Hon orable Sen ator Danie l K. Inouy e | |
7 | * VA Pacific Is lands Heal th Care Sy stem | |
8 | * Tri pler Army Medical Ce nter | |
9 | */ | |
10 | ||
11 | ||
12 | package go v.va.med.j meadows.da o.patient; | |
13 | ||
14 | import gov .va.med.jm eadows.com mon.JMeado wsExceptio n; | |
15 | import gov .va.med.jm eadows.dao .beans.JMe adowsQuery ; | |
16 | import gov .va.med.jm eadows.dao .beans.JMe dResultCol lection; | |
17 | import gov .va.med.vd s.webservi ce.Allergy ; | |
18 | import gov .va.med.vd s.webservi ce.Allergy Detail; | |
19 | import org .apache.ax is.utils.S tringUtils ; | |
20 | import org .junit.Tes t; | |
21 | ||
22 | import jav a.util.Lis t; | |
23 | ||
24 | import sta tic org.ju nit.Assert .*; | |
25 | ||
26 | /** | |
27 | * | |
28 | * @author DNS | |
29 | */ | |
30 | public cla ss Allergy DaoTest ex tends DaoB aseTest | |
31 | { | |
32 | privat e AllergyD ao allergy Dao; | |
33 | ||
34 | public AllergyDa oTest() th rows JMead owsExcepti on | |
35 | { | |
36 | al lergyDao = new Aller gyDao(); | |
37 | } | |
38 | ||
39 | @Test | |
40 | public void test GetPatient Allergies( ) | |
41 | { | |
42 | tr y { | |
43 | JMeadows Query qb = setupQuer y(user, pa tient, sta rtDate, en dDate); | |
44 | // qb.set IncludeDAS VLER(true) ; | |
45 | JMedResu ltCollecti on resultC ollection = allergyD ao.getPati entAllergi es(qb); | |
46 | List<All ergy> alle rgies = re sultCollec tion.getAl lergies(); | |
47 | assertTr ue(allergi es.size() > 0); | |
48 | testForB eanMeta(al lergies); | |
49 | } catch (JMe adowsExcep tion ex) { | |
50 | fail(ex. getMessage ()); | |
51 | } | |
52 | } | |
53 | ||
54 | @Test | |
55 | public void test GetDODVLER PatientAll ergies() | |
56 | { | |
57 | tr y { | |
58 | JMeadows Query qb = setupQuer y(user, pa tient, sta rtDate, en dDate); | |
59 | List<All ergy> alle rgies = al lergyDao.g etDODVLERP atientAlle rgies(qb); | |
60 | assertTr ue(allergi es.size() > 0); | |
61 | testForB eanMeta(al lergies); | |
62 | } catch (JMe adowsExcep tion ex) { | |
63 | fail(ex. getMessage ()); | |
64 | } | |
65 | } | |
66 | ||
67 | @Test | |
68 | public void test GetAllergy Detail() | |
69 | { | |
70 | tr y { | |
71 | JMeadows Query qb = setupQuer y(user, pa tient, sta rtDate, en dDate); | |
72 | List<All ergy> alle rgies = al lergyDao.g etPatientA llergies(q b).getAlle rgies(); | |
73 | assertTr ue(allergi es.size() > 0); | |
74 | ||
75 | Allergy allergy = null; | |
76 | for(Alle rgy alg : allergies) | |
77 | { | |
78 | if ( "VA".equal sIgnoreCas e(alg.getS ite().getA gency())) | |
79 | { | |
80 | allergy = alg; | |
81 | break; | |
82 | } | |
83 | } | |
84 | ||
85 | assertNo tNull(alle rgy); | |
86 | ||
87 | JMeadows Query qb2 = new JMea dowsQuery( ); | |
88 | qb2.setU ser(user); | |
89 | qb2.setP atient(pat ient); | |
90 | if (alle rgy != nul l) | |
91 | { | |
92 | qb2. setItemId( allergy.ge tAllergyId ()); | |
93 | qb2. setRecordS iteCode(al lergy.getS ite().getS iteCode()) ; | |
94 | } | |
95 | ||
96 | AllergyD etail alle rgyDetail = allergyD ao.getAlle rgyDetail( qb2); | |
97 | ||
98 | assertNo tNull(alle rgyDetail) ; | |
99 | ||
100 | assertFa lse(String Utils.isEm pty(allerg yDetail.ge tReportTex t())); | |
101 | ||
102 | } catch (JMe adowsExcep tion ex) { | |
103 | fail(ex. getMessage ()); | |
104 | } | |
105 | } | |
106 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.