Produced by Araxis Merge on 6/9/2017 3:51:13 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:12 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\mvi | TestADT37Message.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 | 64 |
| 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 .mvi; | |||||
| 2 | ||||||
| 3 | import gov .va.nvap.c ommon.file .FileUtil; | |||||
| 4 | import gov .va.nvap.c ommon.jaxb .JaxbUtil; | |||||
| 5 | import gov .va.nvap.c ommon.tran sformer.Tr ansformer; | |||||
| 6 | import gov .va.nvap.c ommon.tran sformer.hl 7.ER7ToXML ; | |||||
| 7 | import gov .va.nvap.c ommon.tran sformer.xm l.XMLToStr ing; | |||||
| 8 | import gov .va.nvap.s erver.test .common.Ab stractTest Case; | |||||
| 9 | import gov .va.nvap.s ervice.pdq .RemovePat ientCorrel ationReque st; | |||||
| 10 | ||||||
| 11 | import jav ax.annotat ion.Resour ce; | |||||
| 12 | ||||||
| 13 | import org .junit.Tes t; | |||||
| 14 | import org .w3c.dom.D ocument; | |||||
| 15 | ||||||
| 16 | public cla ss TestADT 37Message extends Ab stractTest Case { | |||||
| 17 | ||||||
| 18 | @R esource(na me = "remo vePatientC orrelation RequestToA DTA37") | |||||
| 19 | Tr ansformer< Document, Document> removePati entCorrela tionReques tToADTA37; | |||||
| 20 | ||||||
| 21 | @R esource(na me = "pdqJ axbHelper" ) | |||||
| 22 | pr ivate Jaxb Util jaxbH elper; | |||||
| 23 | ||||||
| 24 | @R esource(na me = "xmlT oEr7Transf ormer") | |||||
| 25 | pr ivate Tran sformer<Do cument, St ring> xmlT oEr7Transf ormer; | |||||
| 26 | ||||||
| 27 | pu blic void testADTA37 ER7ToXML() throws Ex ception { | |||||
| 28 | fina l org.spri ngframewor k.core.io. Resource r esource = this.appli cationCont ext | |||||
| 29 | .getReso urce("clas spath:gov/ va/nvap/se rver/test/ endpoint/v ista/mvi/A DT_A37_Pop ulated.er7 "); | |||||
| 30 | fina l String a dtA37 = Fi leUtil.get Resource(r esource).t rim(); | |||||
| 31 | new ER7ToXML() .transform (adtA37); | |||||
| 32 | } | |||||
| 33 | ||||||
| 34 | @T est | |||||
| 35 | pu blic void testADTA37 ER7ToXML2( ) throws E xception { | |||||
| 36 | fina l org.spri ngframewor k.core.io. Resource r esource = this.appli cationCont ext | |||||
| 37 | .getReso urce("clas spath:gov/ va/nvap/se rver/test/ endpoint/v ista/mvi/A DT_A37_Pop ulated_OID .er7"); | |||||
| 38 | fina l String a dtA37 = Fi leUtil.get Resource(r esource).t rim(); | |||||
| 39 | fina l Document doc = new ER7ToXML( ).transfor m(adtA37); | |||||
| 40 | Syst em.out.pri ntln(new X MLToString ().transfo rm(doc)); | |||||
| 41 | } | |||||
| 42 | ||||||
| 43 | @T est | |||||
| 44 | pu blic void testADTA37 Message() throws Exc eption { | |||||
| 45 | ||||||
| 46 | fina l RemovePa tientCorre lationRequ est reques t = new Re movePatien tCorrelati onRequest( ); | |||||
| 47 | requ est.setCor relatedAss igningAuth orityName( "CORRELATE DAA_NAME") ; | |||||
| 48 | requ est.setCor relatedAss igningAuth orityOid(" CORRELATED _ASSIGNING _AUTHORITY _NUMBER"); | |||||
| 49 | requ est.setCor relatedPat ientId("CO RRELATED_P ATIENT_ID" ); | |||||
| 50 | requ est.setPat ientId("PA TIENT_ID") ; | |||||
| 51 | requ est.setPat ientFirstN ame("PATIE NT_FIRSTNA ME"); | |||||
| 52 | requ est.setPat ientLastNa me("PATIEN T_LASTNAME "); | |||||
| 53 | requ est.setPat ientMiddle Name("PATI ENT_MIDDLE NAME"); | |||||
| 54 | fina l Document doc = thi s.jaxbHelp er.marshal (request); | |||||
| 55 | fina l Document adtA37 = this.remov ePatientCo rrelationR equestToAD TA37 | |||||
| 56 | .transfo rm(doc); | |||||
| 57 | ||||||
| 58 | fina l String e r7 = this. xmlToEr7Tr ansformer. transform( adtA37); | |||||
| 59 | ||||||
| 60 | Syst em.out.pri ntln(er7); | |||||
| 61 | ||||||
| 62 | } | |||||
| 63 | ||||||
| 64 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.