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\provider | JanusGUIConfigDaoTest.java | Mon Jul 8 19:18:56 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\provider | JanusGUIConfigDaoTest.java | Wed Jul 31 18:41:37 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 278 |
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.provider ; | |
13 | ||
14 | import gov .va.med.jm eadows.dao .patient.D aoBaseTest ; | |
15 | import gov .va.med.jm eadows.com mon.JMeado wsExceptio n; | |
16 | import gov .va.med.jm eadows.dao .beans.JMe adowsQuery ; | |
17 | import gov .va.med.jm eadows.web service.JM eadowsData ; | |
18 | import gov .va.med.vh ahon.commo n.Utils; | |
19 | import org .junit.Tes t; | |
20 | ||
21 | import jav a.util.Gre gorianCale ndar; | |
22 | ||
23 | import sta tic org.ju nit.Assert .assertTru e; | |
24 | import sta tic org.ju nit.Assert .fail; | |
25 | ||
26 | /** | |
27 | * | |
28 | * @author DNS | |
29 | */ | |
30 | public cla ss JanusGU IConfigDao Test exten ds DaoBase Test | |
31 | { | |
32 | public JanusGUIC onfigDaoTe st() throw s JMeadows Exception | |
33 | { | |
34 | su per(); | |
35 | } | |
36 | ||
37 | @Test | |
38 | public void test GetJanusGU ICfg() | |
39 | { | |
40 | tr y | |
41 | { | |
42 | startDat e.set(2011 , 2, 1); | |
43 | endDate. set(2011, 3, 1); | |
44 | ||
45 | JMeadows Query qb = setupQuer y(user, pa tient, sta rtDate, en dDate); | |
46 | ||
47 | mockProv iderBasedQ uery(qb.ge tUser(), " 1522", "25 8"); | |
48 | ||
49 | qb.setSt artDate(nu ll); // D efault to T-1 month | |
50 | qb.setEn dDate(null ); // D efault to T+1 month | |
51 | ||
52 | // provid erDao = ne w UserDao( ); | |
53 | // provid erDao.setC onnection( m_connecti onPool.get Connection ()); | |
54 | // | |
55 | // String cfg = pro viderDao.g etJanusGUI Config(qb) ; | |
56 | ||
57 | ||
58 | ||
59 | JMeadows Data jData = new JMe adowsData( ); | |
60 | String c fg = jData .getJanusG UIConfig(q b); | |
61 | qb.setSt artDate(Ut ils.getCal endar(new GregorianC alendar(). getTime()) ); // Def ault to T- 1 month | |
62 | qb.setEn dDate(Util s.getCalen dar(new Gr egorianCal endar().ge tTime())); | |
63 | jData.ge tPatientPr oblemList( qb); | |
64 | ||
65 | ||
66 | // AuditD ao auditDa o = new Au ditDao(); | |
67 | // auditD ao.setAudi t("459","9 999","","t ester666", "0","testi ng","testi ng1234","0 1/01/01"," 01/01/01") ; | |
68 | assertTr ue(cfg.len gth() > 0) ; | |
69 | ||
70 | // Only uncomment for debugg ing purpos e, code be low is pic ked up as fortify is sue | |
71 | // logger .debug("CF G: " + cfg ); | |
72 | // logger .debug("-- -"); | |
73 | } | |
74 | ca tch (JMead owsExcepti on ex) | |
75 | { | |
76 | fail(ex. getMessage ()); | |
77 | } | |
78 | } | |
79 | ||
80 | @Test | |
81 | public void test GetProvide rFlags() | |
82 | { | |
83 | tr y | |
84 | { | |
85 | startDat e.set(2011 , 2, 1); | |
86 | endDate. set(2011, 3, 1); | |
87 | ||
88 | JMeadows Query qb = setupQuer y(user, pa tient, sta rtDate, en dDate); | |
89 | ||
90 | mockProv iderBasedQ uery(qb.ge tUser(), q b.getUser( ).getUserI en(), null ); | |
91 | ||
92 | qb.setSt artDate(nu ll); // D efault to T-1 month | |
93 | qb.setEn dDate(null ); // D efault to T+1 month | |
94 | ||
95 | JMeadows Data jData = new JMe adowsData( ); | |
96 | String f lags = jDa ta.getUser Flags(qb); | |
97 | ||
98 | assertTr ue(flags.i ndexOf( "a llergyWrit eBack" ) ! = -1); | |
99 | ||
100 | // Only uncomment for debugg ing purpos e, code be low is pic ked up as fortify is sue | |
101 | // logger .debug("Fl ags: " + f lags); | |
102 | // logger .debug("-- -"); | |
103 | } | |
104 | ca tch (JMead owsExcepti on ex) | |
105 | { | |
106 | fail(ex. getMessage ()); | |
107 | } | |
108 | } | |
109 | ||
110 | @Test | |
111 | public void test SetProvide rFlags() | |
112 | { | |
113 | tr y | |
114 | { | |
115 | startDat e.set(2011 , 2, 1); | |
116 | endDate. set(2011, 3, 1); | |
117 | ||
118 | JMeadows Query qb = setupQuer y(user, pa tient, sta rtDate, en dDate); | |
119 | ||
120 | mockProv iderBasedQ uery(qb.ge tUser(), q b.getUser( ).getUserI en(), null ); | |
121 | ||
122 | qb.setSt artDate(nu ll); // D efault to T-1 month | |
123 | qb.setEn dDate(null ); // D efault to T+1 month | |
124 | ||
125 | String f lags = "te stFlag01^a llergyWrit eBack^test Flag02"; | |
126 | ||
127 | JMeadows Data jData = new JMe adowsData( ); | |
128 | boolean success = jData.setU serFlags(q b, flags); | |
129 | ||
130 | assertTr ue(success ); | |
131 | ||
132 | logger.d ebug("Flag s: " + fla gs); | |
133 | logger.d ebug("---" ); | |
134 | } | |
135 | ca tch (JMead owsExcepti on ex) | |
136 | { | |
137 | fail(ex. getMessage ()); | |
138 | } | |
139 | } | |
140 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.