Produced by Araxis Merge on 6/9/2017 3:51:12 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 | MockSocketTransceiver.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 | 53 |
| 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.tran sceiver.cl ient.Trans ceiver; | |||||
| 5 | ||||||
| 6 | import jav a.io.IOExc eption; | |||||
| 7 | ||||||
| 8 | import org .springfra mework.bea ns.factory .annotatio n.Autowire d; | |||||
| 9 | import org .springfra mework.con text.Appli cationCont ext; | |||||
| 10 | ||||||
| 11 | public cla ss MockSoc ketTransce iver imple ments Tran sceiver<St ring> { | |||||
| 12 | ||||||
| 13 | @A utowired | |||||
| 14 | Ap plicationC ontext app licationCo ntext; | |||||
| 15 | ||||||
| 16 | @O verride | |||||
| 17 | pu blic Strin g transcei ve(final S tring payl oad) { | |||||
| 18 | try { | |||||
| 19 | if (pa yload.cont ains("QBP~ Q22") && p ayload.con tains("CHD RONE")) { | |||||
| 20 | final or g.springfr amework.co re.io.Reso urce resou rce = this .applicati onContext | |||||
| 21 | .g etResource ("classpat h:gov/va/n vap/mock/e ndpoint/mv i/RSP_K22_ SingleMatc h.er7"); | |||||
| 22 | final St ring rspK2 2ER7 = Fil eUtil.getR esource(re source); | |||||
| 23 | return r spK22ER7; | |||||
| 24 | } | |||||
| 25 | if (pa yload.cont ains("QBP~ Q22") && p ayload.con tains("MPI PATIENT") | |||||
| 26 | && payload .contains( "ONE")) { | |||||
| 27 | final or g.springfr amework.co re.io.Reso urce resou rce = this .applicati onContext | |||||
| 28 | .g etResource ("classpat h:gov/va/n vap/mock/e ndpoint/mv i/RSP_K22_ MultipleMa tches.er7" ); | |||||
| 29 | final St ring rspK2 2ER7 = Fil eUtil.getR esource(re source); | |||||
| 30 | return r spK22ER7; | |||||
| 31 | } else if (paylo ad.contain s("QBP~Q22 ") | |||||
| 32 | && payload .contains( "CHDRTWO") ) { | |||||
| 33 | final or g.springfr amework.co re.io.Reso urce resou rce = this .applicati onContext | |||||
| 34 | .g etResource ("classpat h:gov/va/n vap/mock/e ndpoint/mv i/RSP_K22_ MultipleMa tches.er7" ); | |||||
| 35 | final St ring rspK2 2ER7 = Fil eUtil.getR esource(re source); | |||||
| 36 | return r spK22ER7; | |||||
| 37 | } else if (paylo ad.contain s("QBP~Q22 ") && payl oad.contai ns("ERROR" )) { | |||||
| 38 | final or g.springfr amework.co re.io.Reso urce resou rce = this .applicati onContext | |||||
| 39 | .g etResource ("classpat h:gov/va/n vap/mock/e ndpoint/mv i/RSP_K22_ Failure.er 7"); | |||||
| 40 | final St ring rspK2 2ER7 = Fil eUtil.getR esource(re source); | |||||
| 41 | return r spK22ER7; | |||||
| 42 | } else { | |||||
| 43 | final or g.springfr amework.co re.io.Reso urce resou rce = this .applicati onContext | |||||
| 44 | .g etResource ("classpat h:gov/va/n vap/mock/e ndpoint/mv i/RSP_K22_ NoMatches. er7"); | |||||
| 45 | final St ring rspK2 2ER7 = Fil eUtil.getR esource(re source); | |||||
| 46 | return r spK22ER7; | |||||
| 47 | } | |||||
| 48 | } ca tch (final IOExcepti on ex) { | |||||
| 49 | throw new Runtim eException (ex); | |||||
| 50 | } | |||||
| 51 | } | |||||
| 52 | ||||||
| 53 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.