Produced by Araxis Merge on 4/18/2019 5:55:29 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 | MCCF_EDI_TAS_TASCore v2.0_Build_10.zip\MCCF_EDI_TAS_SVC_FHIR_Services\VA-FHIR-Server\src\test\java | FHIRRouterUnitTest.java | Wed Apr 3 02:27:52 2019 UTC |
2 | MCCF_EDI_TAS_TASCore v2.0_Build_10.zip\MCCF_EDI_TAS_SVC_FHIR_Services\VA-FHIR-Server\src\test\java | FHIRRouterUnitTest.java | Mon Apr 15 17:44:24 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 10 | 220 |
Changed | 9 | 18 |
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 | import sta tic org.ju nit.Assert .assertEqu als; | |
2 | import jav a.util.Arr ayList; | |
3 | import jav ax.naming. Context; | |
4 | import jav ax.naming. InitialCon text; | |
5 | import org .junit.Bef oreClass; | |
6 | import org .junit.Tes t; | |
7 | import org .junit.exp erimental. categories .Category; | |
8 | ||
9 | import ca. uhn.utilit ies.Utils; | |
10 | ||
11 | @Category( Unit.class ) | |
12 | public cla ss FHIRRou terUnitTes t { | |
13 | ||
14 | @B eforeClass | |
15 | pu blic stati c void set Up() throw s Exceptio n | |
16 | { | |
17 | Syst em.setProp erty(Conte xt.INITIAL _CONTEXT_F ACTORY, "o rg.apache. naming.jav a.javaURLC ontextFact ory"); | |
18 | Syst em.setProp erty(Conte xt.URL_PKG _PREFIXES, "org.apac he.naming" ); | |
19 | Init ialContext ic; | |
20 | ||
21 | try { | |
22 | ic = n ew Initial Context(); | |
23 | ic.cre ateSubcont ext("java: "); | |
24 | ic.cre ateSubcont ext("java: comp"); | |
25 | ic.cre ateSubcont ext("java: comp/env") ; | |
26 | ic.bind("j ava:comp/e nv/vista", "https:// DNS . URL /"); | |
27 | ic.bin d("java:co mp/env/log Level", "i nfo"); | |
28 | ic.bin d("java:co mp/env/log gingServic eUrl", "of f"); | |
29 | ic.bin d("java:co mp/env/log ging", "") ; | |
30 | } ca tch (Excep tion e1) { | |
31 | e1.pri ntStackTra ce(); | |
32 | } | |
33 | } | |
34 | @T est | |
35 | pu blic void testVistAL inkURLChey enne() { | |
36 | ||
37 | Arra yList<Stri ng> params = new Arr ayList<Str ing>(); | |
38 | para ms.add("77 "); | |
39 | Stri ng use = " 200"; | |
40 | Stri ng loc = " 00681"; | |
41 | Stri ng url = U tils.getLo cationURL( params, us e, loc); | |
42 | assertEqua ls(url, "h ttps:// DNS . URL /00681/REA D/200/77") ; | |
43 | ||
44 | } | |
45 | ||
46 | @T est | |
47 | pu blic void testVistAL inkURL200( ) { | |
48 | ||
49 | Arra yList<Stri ng> params = new Arr ayList<Str ing>(); | |
50 | para ms.add("77 "); | |
51 | Stri ng use = " 200"; | |
52 | Stri ng loc = " dev_0001"; | |
53 | Stri ng url = U tils.getLo cationURL( params, us e, loc); | |
54 | assertEqua ls(url, "h ttps:// DNS . URL /dev_0001/ READ/200/7 7"); | |
55 | ||
56 | } | |
57 | @T est | |
58 | pu blic void testVistAL inkURL837A ll() { | |
59 | ||
60 | Arra yList<Stri ng> params = new Arr ayList<Str ing>(); | |
61 | para ms.add("21 13071"); | |
62 | Stri ng use = " 837"; | |
63 | Stri ng loc = " dev_0001"; | |
64 | Stri ng url = U tils.getLo cationURL( params, us e, loc); | |
65 | assertEqua ls(url, "h ttps:// DNS . URL /dev_0001/ TAS837/211 3071?RESOU RCE=*"); | |
66 | ||
67 | } | |
68 | ||
69 | @T est | |
70 | pu blic void testVistAL inkURL837R esource() { | |
71 | ||
72 | Arra yList<Stri ng> params = new Arr ayList<Str ing>(); | |
73 | para ms.add("21 13071"); | |
74 | para ms.add("Ba sic"); | |
75 | Stri ng use = " 837"; | |
76 | Stri ng loc = " dev_0001"; | |
77 | Stri ng url = U tils.getLo cationURL( params, us e, loc); | |
78 | assertEqua ls(url, "h ttps:// DNS . URL /dev_0001/ TAS837/211 3071?RESOU RCE=Basic" ); | |
79 | ||
80 | } | |
81 | ||
82 | @T est | |
83 | pu blic void testVistAL inkURLLock boxERA() { | |
84 | //vi staLinkUrl = vistaLi nkUrl + "E PAYRPT?RES OURCE=CLAI MRES&IEN=" + params. get(0) + " &FROM=&TO= "; | |
85 | Arra yList<Stri ng> params = new Arr ayList<Str ing>(); | |
86 | para ms.add("85 177"); | |
87 | para ms.add("") ; | |
88 | para ms.add("") ; | |
89 | Stri ng use = " ERA"; | |
90 | Stri ng loc = " dev_0001"; | |
91 | Stri ng url = U tils.getLo cationURL( params, us e, loc); | |
92 | assertEqua ls(url, "h ttps:// DNS . URL /dev_0001/ EPAYRPT?TA RGET=CLAIM RES&IEN=85 177&FROM=& TO="); | |
93 | ||
94 | } | |
95 | ||
96 | @T est | |
97 | pu blic void testVistAL inkURLLock boxEFT() { | |
98 | //vistaLin kUrl + "EP AYRPT?RESO URCE= DNS &IEN=" + p arams.get( 0) + "&FRO M=&TO="; | |
99 | Arra yList<Stri ng> params = new Arr ayList<Str ing>(); | |
100 | para ms.add("13 689"); | |
101 | para ms.add("") ; | |
102 | para ms.add("") ; | |
103 | Stri ng use = " EFT"; | |
104 | Stri ng loc = " dev_0001"; | |
105 | Stri ng url = U tils.getLo cationURL( params, us e, loc); | |
106 | assertEqua ls(url, "h ttps:// DNS . URL /dev_0001/ EPAYRPT?TA RGET= DNS &IEN=13689 &FROM=&TO= "); | |
107 | ||
108 | } | |
109 | ||
110 | @T est | |
111 | pu blic void testVistAL inkURLLock boxOTHER() { | |
112 | Arra yList<Stri ng> params = new Arr ayList<Str ing>(); | |
113 | Stri ng use = " OTHER"; | |
114 | Stri ng loc = " ePayments- 831"; | |
115 | Stri ng url = U tils.getLo cationURL( params, us e, loc); | |
116 | assertEqua ls(url, "h ttps:// DNS . URL /ePayments -831/OTHER /"); | |
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.