Produced by Araxis Merge on 6/5/2018 10:24:15 AM 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 | patch_205_build_9.zip\Java\VistaImagingDataSourceProvider\main\test\java\gov\va\med\imaging\vistaimagingdatasource\storage | NetworkLocationInfoDAOTests.java | Wed May 30 14:35:27 2018 UTC |
2 | patch_205_build_9.zip\Java\VistaImagingDataSourceProvider\main\test\java\gov\va\med\imaging\vistaimagingdatasource\storage | NetworkLocationInfoDAOTests.java | Mon Jun 4 20:47:05 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 6 | 162 |
Changed | 5 | 10 |
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 | * | |
3 | Package: MAG - Vis tA Imaging | |
4 | WARNING: Per VHA D irective 2 004-038, t his routin e should n ot be modi fied. | |
5 | Date Cre ated: Nov, 2009 | |
6 | Site Nam e: Washin gton OI Fi eld Office , Silver S pring, MD | |
7 | Developer: PII | |
8 | Descript ion: DICOM Study cac he manager . Maintain s the cach e of study instances | |
9 | and expires o ld studies after 15 minutes. | |
10 | ||
11 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
12 | ;; Property of the US Government . | |
13 | ;; No permis sion to co py or redi stribute t his softwa re is give n. | |
14 | ;; Use of un released v ersions of this soft ware requi res the us er | |
15 | ;; to execu te a writt en test ag reement wi th the Vis tA Imaging | |
16 | ;; Developm ent Office of the De partment o f Veterans Affairs, | |
17 | ;; telephon e (301) 73 4-0100. | |
18 | ;; | |
19 | ;; The Food and Drug A dministrat ion classi fies this software a s | |
20 | ;; a Class I I medical device. A s such, it may not b e changed | |
21 | ;; in any wa y. Modifi cations to this soft ware may r esult in a n | |
22 | ;; adulterat ed medical device un der 21CFR8 20, the us e of which | |
23 | ;; is consid ered to be a violati on of US F ederal Sta tutes. | |
24 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
25 | ||
26 | */ | |
27 | ||
28 | package go v.va.med.i maging.vis taimagingd atasource. storage; | |
29 | ||
30 | import gov .va.med.im aging.exch ange.busin ess.storag e.NetworkL ocationInf o; | |
31 | import gov .va.med.im aging.exch ange.busin ess.storag e.exceptio ns.Retriev alExceptio n; | |
32 | ||
33 | import org .junit.Ass ert; | |
34 | import org .junit.Tes t; | |
35 | ||
36 | public cla ss Network LocationIn foDAOTests | |
37 | { | |
38 | Ne tworkLocat ionInfoDAO dao = new NetworkLo cationInfo DAO(); | |
39 | ||
40 | @T est | |
41 | pu blic void testTransl ateGetCurr entWriteLo cation() t hrows Retr ievalExcep tion | |
42 | { | |
43 | Stri ngBuilder builder = new String Builder(); | |
44 | buil der.append ("0^^1\r\n "); | |
45 | buil der.append ("NETWORK LOCATION I EN^PHYSICA L REFERENC E\r\n"); | |
46 | builder.ap pend("2^\\ \\ PII \\image1$\ \"); | |
47 | Netw orkLocatio nInfo info = dao.tra nslateGetW riteLocati on(builder .toString( )); | |
48 | ||
49 | Asse rt.assertT rue(info.g etNetworkL ocationIEN ().equals( "2")); | |
50 | Assert.ass ertTrue(in fo.getPhys icalPath() .equals("\ \\\ PII \\image1$\ \")); | |
51 | ||
52 | } | |
53 | ||
54 | ||
55 | @T est(expect ed = Retri evalExcept ion.class) | |
56 | pu blic void testTransl ateGetCurr entWriteLo cationFail ure() thro ws Retriev alExceptio n | |
57 | { | |
58 | Stri ngBuilder builder = new String Builder(); | |
59 | buil der.append ("1^No Wri te Locatio n Found fo r this Pla ce IEN^0") ; | |
60 | Netw orkLocatio nInfo info = dao.tra nslateGetW riteLocati on(builder .toString( )); | |
61 | } | |
62 | ||
63 | ||
64 | @T est | |
65 | pu blic void testTransl ateGetNetw orkLocatio nDetails() throws Re trievalExc eption | |
66 | { | |
67 | Stri ngBuilder builder = new String Builder(); | |
68 | buil der.append ("0^^1\r\n "); | |
69 | buil der.append ("PHYSICAL REFERENCE \r\n"); | |
70 | builder.ap pend("\\\\ PII \\image1$\ \"); | |
71 | Netw orkLocatio nInfo info = dao.tra nslateGetN etworkLoca tionDetail s("17", bu ilder.toSt ring()); | |
72 | ||
73 | Asse rt.assertT rue(info.g etNetworkL ocationIEN ().equals( "17")); | |
74 | Assert.ass ertTrue(in fo.getPhys icalPath() .equals("\ \\\ PII \\image1$\ \")); | |
75 | ||
76 | } | |
77 | ||
78 | ||
79 | @T est(expect ed = Retri evalExcept ion.class) | |
80 | pu blic void testTransl ateGetNetw orkLocatio nDetailsFa ilure() th rows Retri evalExcept ion | |
81 | { | |
82 | Stri ngBuilder builder = new String Builder(); | |
83 | buil der.append ("1^No Net work Locat ion Found with this IEN^0"); | |
84 | Netw orkLocatio nInfo info = dao.tra nslateGetN etworkLoca tionDetail s("17", bu ilder.toSt ring()); | |
85 | } | |
86 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.