Produced by Araxis Merge on 7/10/2017 1:01:43 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\IV-ehmp_cif\CoreValueObjects\main\test\java\gov\va\med\imaging\exchange\business\dicom | DicomAETest.java | Thu Jun 29 17:22:15 2017 UTC |
| 2 | C:\AraxisMergeCompare\Pri_re\IV-ehmp_cif\CoreValueObjects\main\test\java\gov\va\med\imaging\exchange\business\dicom | DicomAETest.java | Thu Jul 6 15:00:26 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 240 |
| Changed | 2 | 4 |
| 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: Aug 27, 2012 | |
| 6 | Site Nam e: Washin gton OI Fi eld Office , Silver S pring, MD | |
| 7 | Developer:
|
|
| 8 | Descript ion: | |
| 9 | ||
| 10 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
| 11 | ;; Property of the US Government . | |
| 12 | ;; No permis sion to co py or redi stribute t his softwa re is give n. | |
| 13 | ;; Use of un released v ersions of this soft ware requi res the us er | |
| 14 | ;; to execu te a writt en test ag reement wi th the Vis tA Imaging | |
| 15 | ;; Developm ent Office of the De partment o f Veterans Affairs, | |
| 16 | ;; telephon e (301) 73 4-0100. | |
| 17 | ;; | |
| 18 | ;; The Food and Drug A dministrat ion classi fies this software a s | |
| 19 | ;; a Class I I medical device. A s such, it may not b e changed | |
| 20 | ;; in any wa y. Modifi cations to this soft ware may r esult in a n | |
| 21 | ;; adulterat ed medical device un der 21CFR8 20, the us e of which | |
| 22 | ;; is consid ered to be a violati on of US F ederal Sta tutes. | |
| 23 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
| 24 | ||
| 25 | */ | |
| 26 | package go v.va.med.i maging.exc hange.busi ness.dicom ; | |
| 27 | ||
| 28 | ||
| 29 | import gov .va.med.im aging.exch ange.busin ess.DicomC ommonTestB ase; | |
| 30 | ||
| 31 | import org .junit.Aft er; | |
| 32 | import org .junit.Bef ore; | |
| 33 | ||
| 34 | /** | |
| 35 | * @author
|
|
| 36 | * | |
| 37 | */ | |
| 38 | public cla ss DicomAE Test exten ds DicomCo mmonTestBa se{ | |
| 39 | ||
| 40 | /* * | |
| 41 | * @param ar g0 | |
| 42 | * / | |
| 43 | pu blic Dicom AETest(Str ing arg0) { | |
| 44 | supe r(arg0); | |
| 45 | // T ODO Auto-g enerated c onstructor stub | |
| 46 | } | |
| 47 | ||
| 48 | pu blic void testServic eAndRoleDu plicateSer vice1(){ | |
| 49 | Dico mAE ae = n ew DicomAE ("FUDGE", "660"); | |
| 50 | ae.a ddAEServic eAndRole(" C-FIND", " SCU"); | |
| 51 | ae.a ddAEServic eAndRole(" C-MOVE", " SCU"); | |
| 52 | ae.a ddAEServic eAndRole(" C-STORE", "SCU"); | |
| 53 | ae.a ddAEServic eAndRole(" C-STORE", "SCP"); | |
| 54 | ||
| 55 | asse rtTrue(ae. isServiceA ndRoleVali d("C-STORE ", "SCU")) ; | |
| 56 | asse rtTrue(ae. isServiceA ndRoleVali d("C-STORE ", "SCP")) ; | |
| 57 | asse rtTrue(ae. isServiceA ndRoleVali d("C-FIND" , "SCU")); | |
| 58 | asse rtTrue(ae. isServiceA ndRoleVali d("C-MOVE" , "SCU")); | |
| 59 | } | |
| 60 | ||
| 61 | pu blic void testServic eAndRoleDu plicateSer vice2(){ | |
| 62 | Dico mAE ae = n ew DicomAE ("FUDGE", "660"); | |
| 63 | ae.a ddAEServic eAndRole(" C-STORE", "SCP"); | |
| 64 | ae.a ddAEServic eAndRole(" C-FIND", " SCU"); | |
| 65 | ae.a ddAEServic eAndRole(" C-MOVE", " SCU"); | |
| 66 | ae.a ddAEServic eAndRole(" C-STORE", "SCU"); | |
| 67 | ||
| 68 | asse rtTrue(ae. isServiceA ndRoleVali d("C-STORE ", "SCU")) ; | |
| 69 | asse rtTrue(ae. isServiceA ndRoleVali d("C-STORE ", "SCP")) ; | |
| 70 | asse rtTrue(ae. isServiceA ndRoleVali d("C-FIND" , "SCU")); | |
| 71 | asse rtTrue(ae. isServiceA ndRoleVali d("C-MOVE" , "SCU")); | |
| 72 | asse rtFalse(ae .isService AndRoleVal id("C-MOVE ", "SCP")) ; | |
| 73 | } | |
| 74 | ||
| 75 | pu blic void testServic eAndRoleDu plicateSer vice3(){ | |
| 76 | Dico mAE ae = n ew DicomAE ("FUDGE", "660"); | |
| 77 | ae.a ddAEServic eAndRole(" C-FIND", " SCU"); | |
| 78 | ae.a ddAEServic eAndRole(" C-MOVE", " SCU"); | |
| 79 | ae.a ddAEServic eAndRole(" C-STORE", "SCU"); | |
| 80 | ae.a ddAEServic eAndRole(" C-STORE", "SCP"); | |
| 81 | ||
| 82 | asse rtTrue(ae. isServiceA ndRoleVali d("C-Store ", "SCU")) ; | |
| 83 | asse rtTrue(ae. isServiceA ndRoleVali d("C-STORE ", "SCP")) ; | |
| 84 | asse rtTrue(ae. isServiceA ndRoleVali d("C-Find" , "SCU")); | |
| 85 | asse rtTrue(ae. isServiceA ndRoleVali d("C-Move" , "SCU")); | |
| 86 | asse rtFalse(ae .isService AndRoleVal id("C-FIND ", "SCP")) ; | |
| 87 | } | |
| 88 | ||
| 89 | pu blic void testRemote AETitleNot Valid(){ | |
| 90 | Dico mAE ae = n ew DicomAE ("FUDGE", "660"); | |
| 91 | ae.s etResultCo de(-1); | |
| 92 | ae.a ddAEServic eAndRole(" C-FIND", " SCU"); | |
| 93 | ae.a ddAEServic eAndRole(" C-MOVE", " SCU"); | |
| 94 | ae.a ddAEServic eAndRole(" C-STORE", "SCU"); | |
| 95 | ae.a ddAEServic eAndRole(" C-STORE", "SCP"); | |
| 96 | ||
| 97 | asse rtFalse(ae .isRemoteA EValid()); | |
| 98 | } | |
| 99 | ||
| 100 | pu blic void testRemote AETitleVal idWithZero (){ | |
| 101 | Dico mAE ae = n ew DicomAE ("FUDGE", "660"); | |
| 102 | ae.s etResultCo de(0); | |
| 103 | ae.a ddAEServic eAndRole(" C-FIND", " SCU"); | |
| 104 | ae.a ddAEServic eAndRole(" C-MOVE", " SCU"); | |
| 105 | ae.a ddAEServic eAndRole(" C-STORE", "SCU"); | |
| 106 | ae.a ddAEServic eAndRole(" C-STORE", "SCP"); | |
| 107 | ||
| 108 | asse rtTrue(ae. isRemoteAE Valid()); | |
| 109 | } | |
| 110 | ||
| 111 | pu blic void testRemote AETitleVal idWithPosi tiveNumber (){ | |
| 112 | Dico mAE ae = n ew DicomAE ("FUDGE", "660"); | |
| 113 | ae.s etResultCo de(7); | |
| 114 | ae.a ddAEServic eAndRole(" C-FIND", " SCU"); | |
| 115 | ae.a ddAEServic eAndRole(" C-MOVE", " SCU"); | |
| 116 | ae.a ddAEServic eAndRole(" C-STORE", "SCU"); | |
| 117 | ae.a ddAEServic eAndRole(" C-STORE", "SCP"); | |
| 118 | ||
| 119 | asse rtTrue(ae. isRemoteAE Valid()); | |
| 120 | } | |
| 121 | ||
| 122 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.