Produced by Araxis Merge on 5/1/2018 12:02:04 PM Central 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 | C:\AraxisMergeCompare\Pri_un\ZIP\JLV_2.6.2.0.3_src\VistaDataService\src\test\integration\java\gov\va\med\vds\rpc | ProceduresRPCTest.java | Thu Mar 29 22:08:32 2018 UTC |
2 | C:\AraxisMergeCompare\Pri_re\ZIP\JLV_2.6.2.0.3_src\VistaDataService\src\test\integration\java\gov\va\med\vds\rpc | ProceduresRPCTest.java | Tue May 1 13:45:42 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 9 | 222 |
Changed | 8 | 16 |
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 4 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 | * Ho norable Se nator Dani el K. Inou ye | |
7 | * VA Pacific I slands Hea lth Care S ystem | |
8 | * Tr ipler Army Medical C enter | |
9 | */ | |
10 | ||
11 | ||
12 | package go v.va.med.v ds.rpc; | |
13 | ||
14 | import gov .va.med.rp c.RPCConne ction; | |
15 | import gov .va.med.rp c.RPCConne ctionStrat egy; | |
16 | import gov .va.med.vd s.patient. dao.rpc.Pr oceduresRP C; | |
17 | import gov .va.med.vd s.vistabea ns.Procedu re; | |
18 | import org .junit.Tes t; | |
19 | ||
20 | import jav a.lang.ref lect.Metho d; | |
21 | import jav a.util.log ging.Logge r; | |
22 | ||
23 | import sta tic org.ju nit.Assert .assertTru e; | |
24 | import sta tic org.mo ckito.Mock ito.mock; | |
25 | import sta tic org.mo ckito.Mock ito.when; | |
26 | ||
27 | /** | |
28 | * | |
29 | * | |
30 | */ | |
31 | public cla ss Procedu resRPCTest | |
32 | { | |
33 | privat e static f inal Logge r logger = Logger.ge tLogger(Pr oceduresRP CTest.clas s.getName( )); | |
34 | ||
35 | @Test | |
36 | public void test ParseProce dures() th rows Excep tion | |
37 | { | |
38 | RP CConnectio n mockRPCC onnection = mock(RPC Connection .class); | |
39 | wh en(mockRPC Connection .getConnec tionStrate gy()).then Return(RPC Connection Strategy.N ATIONAL); | |
40 | ||
41 | Pr oceduresRP C procedur esRPC = ne w Procedur esRPC(mock RPCConnect ion); | |
42 | St ring metho dName = "p arseProced ures"; | |
43 | Cl ass[] para meterTypes = new Cla ss[1]; | |
44 | pa rameterTyp es[0] = St ring.class ; | |
45 | Ob ject[] par ameters = new Object [1]; | |
46 | Me thod metho d = proced uresRPC.ge tClass().g etDeclared Method(met hodName, p arameterTy pes); | |
47 | me thod.setAc cessible(t rue); | |
48 | ||
49 | pa rameters[0 ] = PROCED URES_VPR_J SON_RESPON SE; | |
50 | Pr ocedure[] procedures = (Proced ure[]) met hod.invoke (procedure sRPC, para meters); | |
51 | ||
52 | as sertTrue(p rocedures. length == 4); | |
53 | } | |
54 | ||
55 | privat e static f inal Strin g PROCEDUR ES_VPR_JSO N_RESPONSE = "{\n" + | |
56 | "\t\"api Version\": \"1.01\", \n" + | |
57 | "\t\"dat a\": {\n" + | |
58 | "\t\t\"u pdated\": \"20141223 111536\",\ n" + | |
59 | "\t\t\"t otalItems\ ": 4,\n" + | |
60 | "\t\t\"i tems\": [{ \n" + | |
61 | "\t\t\t\ "cptCode\" : \"urn:cp t:85610\", \n" + | |
62 | "\t\t\t\ "dateTimeE ntered\": 2006060123 57,\n" + | |
63 | "\t\t\t\ "encounter Name\": \" LAB DIV 50 0 OOS ID 1 08 Jun 01, 2006\",\n " + | |
64 | "\t\t\t\"e ncounterUi d\": \"urn :va: SITE :8:visit:5 035\",\n" + | |
65 | "\t\t\t\ "facilityC ode\": 888 ,\n" + | |
66 | "\t\t\t\ "facilityN ame\": \"F T. LOGAN\" ,\n" + | |
67 | "\t\t\t\ "localId\" : 2478,\n" + | |
68 | "\t\t\t\ "location\ ": \"LAB D IV 500 OOS ID 108\", \n" + | |
69 | "\t\t\t\ "name\": \ "PROTHROMB IN TIME\", \n" + | |
70 | "\t\t\t\ "quantity\ ": 1,\n" + | |
71 | "\t\t\t\ "type\": \ "U\",\n" + | |
72 | "\t\t\t\"u id\": \"ur n:va: SITE :8:cpt:247 8\"\n" + | |
73 | "\t\t},\ n" + | |
74 | "\t\t{\n " + | |
75 | "\t\t\t\ "cptCode\" : \"urn:cp t:82565\", \n" + | |
76 | "\t\t\t\ "dateTimeE ntered\": 1996122410 1137,\n" + | |
77 | "\t\t\t\ "encounter Name\": \" LAB DIV 50 0 OOS ID 1 08 Dec 24, 1996\",\n " + | |
78 | "\t\t\t\"e ncounterUi d\": \"urn :va: SITE :8:visit:2 42\",\n" + | |
79 | "\t\t\t\ "facilityC ode\": 500 ,\n" + | |
80 | "\t\t\t\ "facilityN ame\": \"C AMP MASTER \",\n" + | |
81 | "\t\t\t\ "localId\" : 163,\n" + | |
82 | "\t\t\t\ "location\ ": \"LAB D IV 500 OOS ID 108\", \n" + | |
83 | "\t\t\t\ "name\": \ "ASSAY CRE ATININE\", \n" + | |
84 | "\t\t\t\ "quantity\ ": 1,\n" + | |
85 | "\t\t\t\ "type\": \ "U\",\n" + | |
86 | "\t\t\t\"u id\": \"ur n:va: SITE :8:cpt:163 \"\n" + | |
87 | "\t\t},\ n" + | |
88 | "\t\t{\n " + | |
89 | "\t\t\t\ "cptCode\" : \"urn:cp t:99401\", \n" + | |
90 | "\t\t\t\ "dateTimeE ntered\": 1995071809 1835,\n" + | |
91 | "\t\t\t\ "encounter Name\": \" 5 WEST PSY CH Jul 18, 1995\",\n " + | |
92 | "\t\t\t\"e ncounterUi d\": \"urn :va: SITE :8:visit:1 797\",\n" + | |
93 | "\t\t\t\ "facilityC ode\": 888 ,\n" + | |
94 | "\t\t\t\ "facilityN ame\": \"F T. LOGAN\" ,\n" + | |
95 | "\t\t\t\ "localId\" : 1299,\n" + | |
96 | "\t\t\t\ "location\ ": \"5 WES T PSYCH\", \n" + | |
97 | "\t\t\t\ "name\": \ "Preventiv e Medicine Counselin g and\\/or Risk Fact or Reducti on Interve ntion prov ided to an Individua l (15 minu tes) (CPT- 4 99401)\" ,\n" + | |
98 | "\t\t\t\ "quantity\ ": 1,\n" + | |
99 | "\t\t\t\ "type\": \ "U\",\n" + | |
100 | "\t\t\t\"u id\": \"ur n:va: SITE :8:cpt:129 9\"\n" + | |
101 | "\t\t},\ n" + | |
102 | "\t\t{\n " + | |
103 | "\t\t\t\ "cptCode\" : \"urn:cp t:90707\", \n" + | |
104 | "\t\t\t\ "dateTimeE ntered\": 1995071809 1835,\n" + | |
105 | "\t\t\t\ "encounter Name\": \" 5 WEST PSY CH Jul 18, 1995\",\n " + | |
106 | "\t\t\t\"e ncounterUi d\": \"urn :va: SITE :8:visit:1 797\",\n" + | |
107 | "\t\t\t\ "facilityC ode\": 888 ,\n" + | |
108 | "\t\t\t\ "facilityN ame\": \"F T. LOGAN\" ,\n" + | |
109 | "\t\t\t\ "localId\" : 1300,\n" + | |
110 | "\t\t\t\ "location\ ": \"5 WES T PSYCH\", \n" + | |
111 | "\t\t\t\ "name\": \ "MMR VACCI NE, SC\",\ n" + | |
112 | "\t\t\t\ "quantity\ ": 1,\n" + | |
113 | "\t\t\t\ "type\": \ "U\",\n" + | |
114 | "\t\t\t\"u id\": \"ur n:va: SITE :8:cpt:130 0\"\n" + | |
115 | "\t\t}]\ n" + | |
116 | "\t}\n" + | |
117 | "}"; | |
118 | ||
119 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.