Produced by Araxis Merge on 8/1/2019 1:42:45 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_2_8_0_0_0_July_2019.zip\JLV_2_8_0_0_0_July_2019\jMeadows\src\test\integration\java\gov\va\med\jmeadows\dao\patient | ProblemDaoTest.java | Mon Jul 8 19:18:40 2019 UTC |
2 | JLV_2_8_0_0_0_July_2019.zip\JLV_2_8_0_0_0_July_2019\jMeadows\src\test\integration\java\gov\va\med\jmeadows\dao\patient | ProblemDaoTest.java | Wed Jul 31 18:41:37 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 146 |
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.vd s.webservi ce.Problem ; | |
17 | import gov .va.med.vd s.webservi ce.Problem Detail; | |
18 | import org .junit.Tes t; | |
19 | ||
20 | import jav a.util.Lis t; | |
21 | ||
22 | import sta tic org.ju nit.Assert .assertTru e; | |
23 | import sta tic org.ju nit.Assert .fail; | |
24 | ||
25 | /** | |
26 | * | |
27 | * @author DNS | |
28 | */ | |
29 | public cla ss Problem DaoTest ex tends DaoB aseTest | |
30 | { | |
31 | privat e ProblemD ao problem Dao; | |
32 | ||
33 | public ProblemDa oTest() th rows JMead owsExcepti on | |
34 | { | |
35 | pr oblemDao = new Probl emDao(); | |
36 | } | |
37 | ||
38 | @Test | |
39 | public void test GetPatient Problems() | |
40 | { | |
41 | tr y { | |
42 | JMeadows Query qb = setupQuer y(user, pa tient, sta rtDate, en dDate); | |
43 | qb.setSt atus("A"); | |
44 | qb.setIn cludeDASVL ER(true); | |
45 | List<Pro blem> prob lems = pro blemDao.ge tPatientPr oblemList( qb).getPro blems(); | |
46 | assertTr ue(problem s.size() > 0); | |
47 | testForB eanMeta(pr oblems); | |
48 | } catch (JMe adowsExcep tion ex) { | |
49 | fail(ex. getMessage ()); | |
50 | } | |
51 | } | |
52 | ||
53 | @Test | |
54 | public void test GetPatient ProblemDet ails() | |
55 | { | |
56 | try { | |
57 | JM eadowsQuer y qb = set upQuery(us er, patien t, startDa te, endDat e); | |
58 | qb .setStatus ("A"); | |
59 | Li st<Problem > problems = problem Dao.getPat ientProble mList(qb). getProblem s(); | |
60 | as sertTrue(p roblems.si ze() > 0); | |
61 | te stForBeanM eta(proble ms); | |
62 | ||
63 | Pr oblem prob = problem s.get(0); | |
64 | JM eadowsQuer y qbDetail s = setupQ uery(user, patient, startDate, endDate); | |
65 | qb Details.se tItemId(pr ob.getId() ); | |
66 | qb Details.se tRecordSit eCode(prob .getSite() .getSiteCo de()); | |
67 | Pr oblemDetai l problemD etail = pr oblemDao.g etProblemD etail(qbDe tails); | |
68 | as sertTrue(p roblemDeta il != null ); | |
69 | } catch (JMe adowsExcep tion ex) { | |
70 | fail(ex. getMessage ()); | |
71 | } | |
72 | } | |
73 | ||
74 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.