Produced by Araxis Merge on 6/9/2017 3:51:14 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 | Fri Jun 9 19:51:14 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-server\src\test\java\gov\va\nvap\server\test\endpoint\pdq | TestSearchPatient.java | Fri Apr 21 20:03:28 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 69 |
| 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 | package go v.va.nvap. server.tes t.endpoint .pdq; | |||||
| 2 | ||||||
| 3 | import gov .va.nvap.s erver.test .common.Ab stractTest Case; | |||||
| 4 | import gov .va.nvap.s ervice.pdq .PatientMa tchQuery; | |||||
| 5 | import gov .va.nvap.s ervice.pdq .PatientMa tchRespons e; | |||||
| 6 | import gov .va.nvap.s ervice.pdq .PatientPr ofile; | |||||
| 7 | import gov .va.nvap.s ervice.pdq .PdqExcept ion; | |||||
| 8 | import gov .va.nvap.s ervice.pdq .PdqServic e; | |||||
| 9 | ||||||
| 10 | import jav ax.annotat ion.Resour ce; | |||||
| 11 | import jav ax.xml.bin d.JAXBExce ption; | |||||
| 12 | ||||||
| 13 | import org .junit.Tes t; | |||||
| 14 | ||||||
| 15 | public cla ss TestSea rchPatient extends A bstractTes tCase { | |||||
| 16 | ||||||
| 17 | @R esource(na me = "pdqS ervice") | |||||
| 18 | Pd qService p dqService; | |||||
| 19 | ||||||
| 20 | @T est | |||||
| 21 | pu blic void testMpiFai lure() thr ows JAXBEx ception, P dqExceptio n { | |||||
| 22 | fina l PatientP rofile pat ient = new PatientPr ofile(); | |||||
| 23 | pati ent.setFir stName("ER ROR"); | |||||
| 24 | pati ent.setLas tName("CHD RZZZTESTPA TIENT"); | |||||
| 25 | pati ent.setSsn ("66600000 1"); | |||||
| 26 | fina l PatientM atchQuery patientMat chQuery = new Patien tMatchQuer y(); | |||||
| 27 | pati entMatchQu ery.setPat ientProfil e(patient) ; | |||||
| 28 | ||||||
| 29 | fina l PatientM atchRespon se patient MatchRespo nse = this .pdqServic e | |||||
| 30 | .searchP atient(pat ientMatchQ uery); | |||||
| 31 | ||||||
| 32 | juni t.framewor k.Assert.a ssertEqual s("MVI Una vailable", | |||||
| 33 | patientM atchRespon se.getErro r().getErr orDescript ion()); | |||||
| 34 | } | |||||
| 35 | ||||||
| 36 | @T est | |||||
| 37 | pu blic void testMpiMul tipleMatch es() throw s JAXBExce ption, Pdq Exception { | |||||
| 38 | fina l PatientP rofile pat ient = new PatientPr ofile(); | |||||
| 39 | pati ent.setFir stName("CH DRTWO"); | |||||
| 40 | pati ent.setLas tName("CHD RZZZTESTPA TIENT"); | |||||
| 41 | pati ent.setSsn ("66600000 2"); | |||||
| 42 | fina l PatientM atchQuery patientMat chQuery = new Patien tMatchQuer y(); | |||||
| 43 | pati entMatchQu ery.setPat ientProfil e(patient) ; | |||||
| 44 | ||||||
| 45 | fina l PatientM atchRespon se patient SearchResp onse = thi s.pdqServi ce | |||||
| 46 | .searchP atient(pat ientMatchQ uery); | |||||
| 47 | ||||||
| 48 | juni t.framewor k.Assert.a ssertEqual s(4, patie ntSearchRe sponse | |||||
| 49 | .getPati ents().get PatientPro file().siz e()); | |||||
| 50 | } | |||||
| 51 | ||||||
| 52 | @T est | |||||
| 53 | pu blic void testMpiSin gleMatch() throws JA XBExceptio n, PdqExce ption { | |||||
| 54 | fina l PatientP rofile pat ient = new PatientPr ofile(); | |||||
| 55 | pati ent.setFir stName("CH DRONE"); | |||||
| 56 | pati ent.setLas tName("CHD RZZZTESTPA TIENT"); | |||||
| 57 | pati ent.setSsn ("66600000 1"); | |||||
| 58 | fina l PatientM atchQuery patientMat chQuery = new Patien tMatchQuer y(); | |||||
| 59 | pati entMatchQu ery.setPat ientProfil e(patient) ; | |||||
| 60 | ||||||
| 61 | fina l PatientM atchRespon se patient SearchResp onse = thi s.pdqServi ce | |||||
| 62 | .searchP atient(pat ientMatchQ uery); | |||||
| 63 | ||||||
| 64 | juni t.framewor k.Assert.a ssertEqual s("CHDRZZZ TESTPATIEN T", | |||||
| 65 | patientS earchRespo nse.getPat ients().ge tPatientPr ofile().ge t(0) | |||||
| 66 | .g etLastName ()); | |||||
| 67 | } | |||||
| 68 | ||||||
| 69 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.