Produced by Araxis Merge on 12/8/2017 1:33:39 PM Central Standard 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 | PC_CP4_CiF.zip\FPPS_Backend\fpps_app\src\test\java\gov\va\med\fee\controller | ClaimDetailsControllerTest.java | Fri Dec 8 17:51:36 2017 UTC |
| 2 | PC_CP4_CiF.zip\FPPS_Backend\fpps_app\src\test\java\gov\va\med\fee\controller | ClaimDetailsControllerTest.java | Fri Dec 8 18:54:34 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 8 | 584 |
| Changed | 7 | 14 |
| 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 | package go v.va.med.f ee.control ler; | |
| 2 | ||
| 3 | import sta tic org.ha mcrest.Mat chers.is; | |
| 4 | import sta tic org.mo ckito.Mock ito.times; | |
| 5 | import sta tic org.mo ckito.Mock ito.verify ; | |
| 6 | import sta tic org.mo ckito.Mock ito.verify NoMoreInte ractions; | |
| 7 | import sta tic org.mo ckito.Mock ito.when; | |
| 8 | import sta tic org.sp ringframew ork.test.w eb.servlet .request.M ockMvcRequ estBuilder s.get; | |
| 9 | import sta tic org.sp ringframew ork.test.w eb.servlet .result.Mo ckMvcResul tHandlers. print; | |
| 10 | import sta tic org.sp ringframew ork.test.w eb.servlet .result.Mo ckMvcResul tMatchers. content; | |
| 11 | import sta tic org.sp ringframew ork.test.w eb.servlet .result.Mo ckMvcResul tMatchers. jsonPath; | |
| 12 | import sta tic org.sp ringframew ork.test.w eb.servlet .result.Mo ckMvcResul tMatchers. status; | |
| 13 | ||
| 14 | import jav a.math.Big Decimal; | |
| 15 | import jav a.sql.Time stamp; | |
| 16 | import jav a.text.Sim pleDateFor mat; | |
| 17 | import jav a.util.Arr ayList; | |
| 18 | import jav a.util.Cal endar; | |
| 19 | import jav a.util.Dat e; | |
| 20 | import jav a.util.Gre gorianCale ndar; | |
| 21 | import jav a.util.Lis t; | |
| 22 | ||
| 23 | import org .junit.Bef ore; | |
| 24 | import org .junit.Tes t; | |
| 25 | import org .junit.run ner.RunWit h; | |
| 26 | import org .mockito.I njectMocks ; | |
| 27 | import org .mockito.M ock; | |
| 28 | import org .mockito.M ockitoAnno tations; | |
| 29 | import org .mockito.r unners.Moc kitoJUnitR unner; | |
| 30 | import org .springfra mework.htt p.HttpStat us; | |
| 31 | import org .springfra mework.htt p.MediaTyp e; | |
| 32 | import org .springfra mework.tes t.web.serv let.MockMv c; | |
| 33 | import org .springfra mework.tes t.web.serv let.setup. MockMvcBui lders; | |
| 34 | ||
| 35 | import gov .va.med.fe e.constant s.ClaimDet ailsConsta nts; | |
| 36 | import gov .va.med.fe e.exceptio ns.Generic Exception; | |
| 37 | import gov .va.med.fe e.filter.C ORSFilter; | |
| 38 | import gov .va.med.fe e.model.re sponse.Add itionalInf oResponse; | |
| 39 | import gov .va.med.fe e.model.re sponse.Cla imDetailsR esponse; | |
| 40 | import gov .va.med.fe e.model.re sponse.Cla imRejectio nHistoryRe sponse; | |
| 41 | import gov .va.med.fe e.model.re sponse.Dia gnosisCode Response; | |
| 42 | import gov .va.med.fe e.model.re sponse.Dia gnosisCode s; | |
| 43 | import gov .va.med.fe e.model.re sponse.Lin eItemRespo nse; | |
| 44 | import gov .va.med.fe e.model.re sponse.Ohi InfoRespon se; | |
| 45 | import gov .va.med.fe e.model.re sponse.Pro viderInfoR esponse; | |
| 46 | import gov .va.med.fe e.model.re sponse.ReR outingHist ory; | |
| 47 | import gov .va.med.fe e.model.re sponse.Vet eranInfoRe sponse; | |
| 48 | import gov .va.med.fe e.service. IClaimDeta ilsService ; | |
| 49 | ||
| 50 | /** | |
| 51 | * | |
| 52 | * @author DN S SUNH | |
| 53 | * @versio n 1.0 This Class Tes t the Clai m Controll er. | |
| 54 | * | |
| 55 | * @author Vamsi Kri shna Ganga rapu Added {@link Di agnosisCod eResponse} to the | |
| 56 | * test case | |
| 57 | * @versio n 1.1 | |
| 58 | * | |
| 59 | */ | |
| 60 | ||
| 61 | @RunWith(M ockitoJUni tRunner.cl ass) | |
| 62 | public cla ss ClaimDe tailsContr ollerTest { | |
| 63 | pr ivate Mock Mvc mockMv c; | |
| 64 | ||
| 65 | @M ock | |
| 66 | pr ivate ICla imDetailsS ervice cla imDetailsS erviceMock ; | |
| 67 | ||
| 68 | @I njectMocks | |
| 69 | pr ivate Clai mDetailsCo ntroller c laimDetail sControlle r; | |
| 70 | ||
| 71 | Si mpleDateFo rmat forma tter = new SimpleDat eFormat("M M/dd/yyyy" ); | |
| 72 | ||
| 73 | /* * | |
| 74 | * @throws E xception | |
| 75 | * / | |
| 76 | @B efore | |
| 77 | pu blic void init() thr ows Except ion { | |
| 78 | Mock itoAnnotat ions.initM ocks(this) ; | |
| 79 | mock Mvc = Mock MvcBuilder s.standalo neSetup(cl aimDetails Controller ).addFilte rs(new COR SFilter()) .build(); | |
| 80 | } | |
| 81 | ||
| 82 | /* * | |
| 83 | * @throws E xception | |
| 84 | * / | |
| 85 | @T est | |
| 86 | pu blic void testGetIns tClaimDeta ilsByIndex _success() throws Ex ception { | |
| 87 | ||
| 88 | // B igDecimal number = n ew BigDeci mal(1234); | |
| 89 | Date discharge Date = new Gregorian Calendar(2 009, Calen dar.JANUAR Y, 22).get Time(); | |
| 90 | Date admission Date = new Gregorian Calendar(1 990, Calen dar.APRIL, 30).getTi me(); | |
| 91 | ||
| 92 | Vete ranInfoRes ponse pers onInfoResp onse = new VeteranIn foResponse (1L, "Doe" , "John", "", "Sarno Road", | |
| 93 | "Sarno P laza", "Me lbourne", "Florida", "32935", "Male", "0 5-JUN-45", ""); | |
| 94 | Prov iderInfoRe sponse bil lingProvid erResponse = new Pro viderInfoR esponse("T est", "FTC ", "Sarno" , "Melbour ne", | |
| 95 | "FL", "329 35", "9999 999999", " 1234567", "Team-9 Ba ckend", "1 23456789", "john.doe @ DOMAIN ", "123765 4"); | |
| 96 | Prov iderInfoRe sponse pay ToProvider Response = new Provi derInfoRes ponse("Tes t", "FTC", "Sarno", "Melbourne ", "FL", | |
| 97 | "32935", " 9999999999 ", "123456 78", "Team -9 Backend ", "123456 78", "john .doe@ DOMAIN ", "123765 5"); | |
| 98 | Prov iderInfoRe sponse ser viceProvid erResponse = new Pro viderInfoR esponse("T est", "FTC ", "Sarno" , "Melbour ne", | |
| 99 | "FL", "329 35", "9999 999990", " 12345677", "Team-9 B ackend", " 12345677", "john.doe @ DOMAIN ", "123765 6"); | |
| 100 | ||
| 101 | List <Diagnosis Codes> dia gnosisCode List = new ArrayList <>(); | |
| 102 | diag nosisCodeL ist.add(ne w Diagnosi sCodes(1, "D1", "DQ1 ", "A", "d iagnosisDe scription 1")); | |
| 103 | diag nosisCodeL ist.add(ne w Diagnosi sCodes(2, "D2", "DQ2 ", "J", "d iagnosisDe scription 2")); | |
| 104 | // D iagnosisCo des diagno sisCodes = new Diagn osisCod(di agnosisCod eList); | |
| 105 | List <ClaimReje ctionHisto ryResponse > claimRej ectionHist oryRespons eList = ne w ArrayLis t<>(); | |
| 106 | clai mRejection HistoryRes ponseList. add(new Cl aimRejecti onHistoryR esponse(ad missionDat e, "Janiya Howe", | |
| 107 | "DESCRIP TION", "ZX C", "Janiy a Howe", " ZXC", "ZXC ")); | |
| 108 | ||
| 109 | Addi tionalInfo Response a dditionalI nfo = new Additional InfoRespon se("1000", "Test", " 1000", "Te st", "Simp ly", | |
| 110 | "$10.00" , "06/09/2 017", "$10 .00", "123 48ABC", ad missionDat e.toString (), discha rgeDate.to String(), "28", | |
| 111 | "11", "M ICHAEL KUH U DAVID MR "); | |
| 112 | List <LineItemR esponse> l ineItemsIn fo = getIn stitutiona lLineItemR esponseLis t(); | |
| 113 | ||
| 114 | List <ReRouting History> r eRoutingHi storyList = new Arra yList<ReRo utingHisto ry>(); | |
| 115 | List <OhiInfoRe sponse> oh iInfo = ne w ArrayLis t<OhiInfoR esponse>() ; | |
| 116 | ||
| 117 | Stri ngBuilder transferre dFrom = ne w StringBu ilder(); | |
| 118 | tran sferredFro m.append(" VISN:01/FA C:station2 /USER:VHAI S_USER2"); | |
| 119 | Stri ngBuilder transferre dTo = new StringBuil der(); | |
| 120 | tran sferredTo. append("VI SN:00/FAC: 100/USER:V HAIS_USER1 "); | |
| 121 | ||
| 122 | reRo utingHisto ryList.add ( | |
| 123 | new ReRo utingHisto ry("07/07/ 2017", "Re ason1", tr ansferredT o, transfe rredFrom, "transferr ed", "CCSE ")); | |
| 124 | ||
| 125 | Clai mDetailsRe sponse cla imResponse = new Cla imDetailsR esponse(1, "2.0.1.ST D", "INPRO CESS", "11 1111", | |
| 126 | personIn foResponse , serviceP roviderRes ponse, bil lingProvid erResponse , payToPro viderRespo nse, | |
| 127 | addition alInfo, di agnosisCod eList, lin eItemsInfo , reRoutin gHistoryLi st, | |
| 128 | claimRej ectionHist oryRespons eList, ohi Info); | |
| 129 | ||
| 130 | when (claimDeta ilsService Mock.getCl aimDetails ByClaimInd ex((long) 1)).thenRe turn(claim Response); | |
| 131 | mock Mvc.perfor m(get("/ap i/v1/claim /{claimInd ex}", (lon g) 1)).and Do(print() ).andExpec t(status() .isOk()) | |
| 132 | .andExpe ct(content ().content Type(Media Type.APPLI CATION_JSO N_UTF8_VAL UE)) | |
| 133 | .andExpe ct(jsonPat h("$.claim Id", is(1) )).andExpe ct(jsonPat h("$.patie ntControlN umber", is ("2.0.1.ST D"))) | |
| 134 | .andExpe ct(jsonPat h("$.claim Status", i s("INPROCE SS"))) | |
| 135 | .andExpe ct(jsonPat h("$.preAu thorizatio n", is("11 1111"))) | |
| 136 | .andExpe ct(jsonPat h("$.veter anInfo.fir stName", i s("John")) ) | |
| 137 | .andExpe ct(jsonPat h("$.veter anInfo.mid dleName", is(""))) | |
| 138 | .andExpe ct(jsonPat h("$.veter anInfo.add ressLine1" , is("Sarn o Road"))) | |
| 139 | .andExpe ct(jsonPat h("$.veter anInfo.add ressLine2" , is("Sarn o Plaza")) ) | |
| 140 | .andExpe ct(jsonPat h("$.veter anInfo.cit y", is("Me lbourne")) ) | |
| 141 | .andExpe ct(jsonPat h("$.veter anInfo.sta te", is("F lorida"))) | |
| 142 | .andExpe ct(jsonPat h("$.veter anInfo.zip Code", is( "32935"))) | |
| 143 | .andExpe ct(jsonPat h("$.veter anInfo.gen der", is(" Male"))) | |
| 144 | .andExpe ct(jsonPat h("$.billi ngProvider Info.lastN ame", is(" Test"))) | |
| 145 | .andExpe ct(jsonPat h("$.billi ngProvider Info.addre ssLine1", is("FTC")) ) | |
| 146 | .andExpe ct(jsonPat h("$.billi ngProvider Info.addre ssLine2", is("Sarno" ))) | |
| 147 | .andExpe ct(jsonPat h("$.billi ngProvider Info.city" , is("Melb ourne"))) | |
| 148 | .andExpe ct(jsonPat h("$.billi ngProvider Info.state ", is("FL" ))) | |
| 149 | .andExpe ct(jsonPat h("$.billi ngProvider Info.zipCo de", is("3 2935"))) | |
| 150 | .andExpe ct(jsonPat h("$.billi ngProvider Info.phone Number", i s("9999999 999"))) | |
| 151 | .andExpe ct(jsonPat h("$.billi ngProvider Info.taxId ", is("123 4567"))) | |
| 152 | .andExpe ct(jsonPat h("$.billi ngProvider Info.conta ctName", i s("Team-9 Backend")) ) | |
| 153 | .andExpe ct(jsonPat h("$.billi ngProvider Info.faxNu mber", is( "123456789 "))) | |
| 154 | .andExpect (jsonPath( "$.billing ProviderIn fo.email", is("john. doe@ DOMAIN "))) | |
| 155 | .andExpe ct(jsonPat h("$.billi ngProvider Info.provi derNpi", i s("1237654 "))) | |
| 156 | .andExpe ct(jsonPat h("$.payTo ProviderIn fo.lastNam e", is("Te st"))) | |
| 157 | .andExpe ct(jsonPat h("$.payTo ProviderIn fo.address Line1", is ("FTC"))) | |
| 158 | .andExpe ct(jsonPat h("$.payTo ProviderIn fo.address Line2", is ("Sarno")) ) | |
| 159 | .andExpe ct(jsonPat h("$.payTo ProviderIn fo.city", is("Melbou rne"))) | |
| 160 | .andExpe ct(jsonPat h("$.payTo ProviderIn fo.state", is("FL")) ) | |
| 161 | .andExpe ct(jsonPat h("$.payTo ProviderIn fo.zipCode ", is("329 35"))) | |
| 162 | .andExpe ct(jsonPat h("$.payTo ProviderIn fo.phoneNu mber", is( "999999999 9"))) | |
| 163 | .andExpe ct(jsonPat h("$.payTo ProviderIn fo.taxId", is("12345 678"))) | |
| 164 | .andExpe ct(jsonPat h("$.payTo ProviderIn fo.contact Name", is( "Team-9 Ba ckend"))) | |
| 165 | .andExpe ct(jsonPat h("$.payTo ProviderIn fo.faxNumb er", is("1 2345678")) ) | |
| 166 | .andExpect (jsonPath( "$.payToPr oviderInfo .email", i s("john.do e@ DOMAIN "))) | |
| 167 | .andExpe ct(jsonPat h("$.payTo ProviderIn fo.provide rNpi", is( "1237655") )) | |
| 168 | .andExpe ct(jsonPat h("$.servi ceProvider Info.lastN ame", is(" Test"))) | |
| 169 | .andExpe ct(jsonPat h("$.servi ceProvider Info.addre ssLine1", is("FTC")) ) | |
| 170 | .andExpe ct(jsonPat h("$.servi ceProvider Info.addre ssLine2", is("Sarno" ))) | |
| 171 | .andExpe ct(jsonPat h("$.servi ceProvider Info.city" , is("Melb ourne"))) | |
| 172 | .andExpe ct(jsonPat h("$.servi ceProvider Info.state ", is("FL" ))) | |
| 173 | .andExpe ct(jsonPat h("$.servi ceProvider Info.zipCo de", is("3 2935"))) | |
| 174 | .andExpe ct(jsonPat h("$.servi ceProvider Info.phone Number", i s("9999999 990"))) | |
| 175 | .andExpe ct(jsonPat h("$.servi ceProvider Info.taxId ", is("123 45677"))) | |
| 176 | .andExpe ct(jsonPat h("$.servi ceProvider Info.conta ctName", i s("Team-9 Backend")) ) | |
| 177 | .andExpe ct(jsonPat h("$.servi ceProvider Info.faxNu mber", is( "12345677" ))) | |
| 178 | .andExpect (jsonPath( "$.service ProviderIn fo.email", is("john. doe@ DOMAIN "))) | |
| 179 | .andExpe ct(jsonPat h("$.servi ceProvider Info.provi derNpi", i s("1237656 "))) | |
| 180 | .andExpe ct(jsonPat h("$.diagn osisCodes[ 0].sequenc eNumber", is(1))) | |
| 181 | .andExpe ct(jsonPat h("$.diagn osisCodes[ 0].diagnos isCode", i s("D1"))) | |
| 182 | .andExpe ct(jsonPat h("$.diagn osisCodes[ 0].diagnos isCodeQual ifier", is ("DQ1"))) | |
| 183 | .andExpe ct(jsonPat h("$.diagn osisCodes[ 0].poaIndi cator", is ("A"))) | |
| 184 | .andExpe ct(jsonPat h("$.diagn osisCodes[ 0].diagnos isDescript ion", is(" diagnosisD escription 1"))) | |
| 185 | .andExpe ct(jsonPat h("$.diagn osisCodes[ 1].sequenc eNumber", is(2))) | |
| 186 | .andExpe ct(jsonPat h("$.diagn osisCodes[ 1].diagnos isCode", i s("D2"))) | |
| 187 | .andExpe ct(jsonPat h("$.diagn osisCodes[ 1].diagnos isCodeQual ifier", is ("DQ2"))) | |
| 188 | .andExpe ct(jsonPat h("$.diagn osisCodes[ 1].poaIndi cator", is ("J"))) | |
| 189 | .andExpe ct(jsonPat h("$.diagn osisCodes[ 1].diagnos isDescript ion", is(" diagnosisD escription 2"))) | |
| 190 | .andExpe ct(jsonPat h("$.lineI temsInfo[0 ].line_id" , is(12345 67))) | |
| 191 | .andExpe ct(jsonPat h("$.lineI temsInfo[0 ].medical_ code", is( "Test103") )) | |
| 192 | .andExpe ct(jsonPat h("$.lineI temsInfo[0 ].revenue_ code", is( "Test103") )) | |
| 193 | .andExpe ct(jsonPat h("$.lineI temsInfo[0 ].service_ from_date" , is(forma tter.forma t(new Time stamp(new Date().get Time())))) ) | |
| 194 | .andExpe ct(jsonPat h("$.lineI temsInfo[0 ].service_ to_date", is(formatt er.format( new Timest amp(new Da te().getTi me()))))) | |
| 195 | .andExpe ct(jsonPat h("$.lineI temsInfo[0 ].billed_a mount", is ("$100.00" ))) | |
| 196 | .andExpe ct(jsonPat h("$.lineI temsInfo[0 ].line_sta tus", is(" test103")) ) | |
| 197 | .andExpe ct(jsonPat h("$.lineI temsInfo[0 ].treasury _payment_d ate", is(f ormatter.f ormat(new Timestamp( new Date() .getTime() ))))) | |
| 198 | .andExpe ct(jsonPat h("$.lineI temsInfo[0 ].adjustme nt_amount" , is("$0.0 0"))) | |
| 199 | .andExpe ct(jsonPat h("$.lineI temsInfo[0 ].paid_amo unt", is(" $10.00"))) | |
| 200 | .andExpe ct(jsonPat h("$.lineI temsInfo[0 ].check_ef t_trn", is ("1234567" ))) | |
| 201 | .andExpe ct(jsonPat h("$.lineI temsInfo[0 ].reason_c ode", is(" 97"))) | |
| 202 | .andExpe ct(jsonPat h("$.addit ionalInfo. otherInsur anceNumber _Secondary Payer", is ("1000"))) | |
| 203 | .andExpe ct(jsonPat h("$.addit ionalInfo. otherInsur ancePlan_S econdaryPa yer", is(" Test"))) | |
| 204 | .andExpe ct(jsonPat h("$.addit ionalInfo. otherInsur anceNumber _TertiaryP ayer", is( "1000"))) | |
| 205 | .andExpe ct(jsonPat h("$.addit ionalInfo. otherInsur ancePlan_T ertiaryPay er", is("T est"))) | |
| 206 | .andExpe ct(jsonPat h("$.addit ionalInfo. ambulanceT ransportRe ason", is( "Simply")) ) | |
| 207 | .andExpe ct(jsonPat h("$.addit ionalInfo. totalClaim AmountPaid ", is("$10 .00"))) | |
| 208 | .andExpe ct(jsonPat h("$.addit ionalInfo. treasuryPa ymentDate_ Pd", is("0 6/09/2017" ))) | |
| 209 | .andExpe ct(jsonPat h("$.addit ionalInfo. totalPaidA mtPerPD", is("$10.00 "))) | |
| 210 | .andExpe ct(jsonPat h("$.addit ionalInfo. check_EFT_ TRN", is(" 12348ABC") )) | |
| 211 | .andExpe ct(jsonPat h("$.addit ionalInfo. admissionD ate", is(a dmissionDa te.toStrin g()))) | |
| 212 | .andExpe ct(jsonPat h("$.addit ionalInfo. dischargeD ate", is(d ischargeDa te.toStrin g()))) | |
| 213 | .andExpe ct(jsonPat h("$.addit ionalInfo. coveredDay s", is("28 "))) | |
| 214 | .andExpe ct(jsonPat h("$.addit ionalInfo. providerDr g", is("11 "))) | |
| 215 | .andExpe ct(jsonPat h("$.addit ionalInfo. attendingP hysician", is("MICHA EL KUHU DA VID MR"))) | |
| 216 | .andExpe ct(jsonPat h("$.rejec tionHistor y[0].rejec tedBy", is ("Janiya H owe"))) | |
| 217 | .andExpe ct(jsonPat h("$.rejec tionHistor y[0].reaso n", is("DE SCRIPTION" ))) | |
| 218 | .andExpe ct(jsonPat h("$.rejec tionHistor y[0].expla nation", i s("ZXC"))) | |
| 219 | .andExpe ct(jsonPat h("$.rejec tionHistor y[0].revie wedBy", is ("Janiya H owe"))) | |
| 220 | .andExpe ct(jsonPat h("$.rejec tionHistor y[0].outco me", is("Z XC"))) | |
| 221 | .andExpe ct(jsonPat h("$.rejec tionHistor y[0].revie werComment s", is("ZX C"))) | |
| 222 | .andExpe ct(jsonPat h("$.reRou tingHistor y[0].date" , is("07/0 7/2017"))) | |
| 223 | .andExpe ct(jsonPat h("$.reRou tingHistor y[0].reaso n", is("Re ason1"))) | |
| 224 | .andExpe ct( | |
| 225 | js onPath("$. reRoutingH istory[0]. transferre dFrom", is ("VISN:01/ FAC:statio n2/USER:VH AIS_USER2" ))) | |
| 226 | .andExpe ct(jsonPat h("$.reRou tingHistor y[0].expla nation", i s("transfe rred"))) | |
| 227 | .andExpe ct(jsonPat h("$.reRou tingHistor y[0].trans ferredTo", is("VISN: 00/FAC:100 /USER:VHAI S_USER1")) ); | |
| 228 | ||
| 229 | veri fy(claimDe tailsServi ceMock, ti mes(1)).ge tClaimDeta ilsByClaim Index((lon g) 1); | |
| 230 | veri fyNoMoreIn teractions (claimDeta ilsService Mock); | |
| 231 | } | |
| 232 | ||
| 233 | /* * | |
| 234 | * @throws E xception | |
| 235 | * / | |
| 236 | @T est(expect ed = Excep tion.class ) | |
| 237 | pu blic void testGetCla imDetailsB yIndex_Fai l() throws Exception { | |
| 238 | long claimInde x = 1L; | |
| 239 | when (claimDeta ilsService Mock.getCl aimDetails ByClaimInd ex(claimIn dex)).then Throw(new GenericExc eption(Cla imDetailsC onstants.C LAIM_NOT_F OUND, "No claim foun d with cla im id " + claimIndex , | |
| 240 | HttpStat us.NOT_FOU ND)); | |
| 241 | ||
| 242 | mock Mvc.perfor m(get("/ap i/v1/claim /{claimInd ex}", clai mIndex)).a ndExpect(s tatus().is NotFound() ); | |
| 243 | veri fyNoMoreIn teractions (claimDeta ilsControl ler); | |
| 244 | ||
| 245 | } | |
| 246 | ||
| 247 | /* * | |
| 248 | * @return l ineItemRes ponses | |
| 249 | * / | |
| 250 | pr ivate List <LineItemR esponse> g etInstitut ionalLineI temRespons eList() { | |
| 251 | List <LineItemR esponse> l ineItemRes ponses = n ew ArrayLi st<>(); | |
| 252 | ||
| 253 | BigD ecimal cla imProcedur eSequence = new BigD ecimal(123 4567); | |
| 254 | Long claimProc edureSeq = claimProc edureSeque nce.longVa lue(); | |
| 255 | Stri ng procCod e = "Test1 03"; | |
| 256 | Stri ng revenue Code = "Te st103"; | |
| 257 | Stri ng service FromDate = formatter .format(ne w Timestam p(new Date ().getTime ())) ; | |
| 258 | Stri ng service ToDate = f ormatter.f ormat(new Timestamp( new Date() .getTime() )) ; | |
| 259 | Stri ng billedA mount = "$ 100.00"; | |
| 260 | Stri ng procCod eDesc = "t est103"; | |
| 261 | Stri ng diagPoi nter = "te st103"; | |
| 262 | Long billedUni ts = null; | |
| 263 | Stri ng modifie r1 = "test "; | |
| 264 | Stri ng modifie r2 = null; | |
| 265 | Stri ng modifie r3 = null; | |
| 266 | Stri ng modifie r4 = null; | |
| 267 | Time stamp paym entDate = new Timest amp(new Da te().getTi me()); | |
| 268 | Stri ng payment Trackingnu mber = "12 34567"; | |
| 269 | Stri ng toothCo de = null; | |
| 270 | Stri ng toothSu rface = nu ll; | |
| 271 | Stri ng toothSu rfaceCd2 = null; | |
| 272 | Stri ng toothSu rfaceCd3 = null; | |
| 273 | Stri ng toothSu rfaceCd4 = null; | |
| 274 | Stri ng toothSu rfaceCd5 = null; | |
| 275 | //St ring oralC avityCd = null; | |
| 276 | Stri ng lineSta tus = "tes t103"; | |
| 277 | ||
| 278 | Stri ng lineIte mTreasuryP aymentDate Formatted = formatte r.format(p aymentDate ); | |
| 279 | Stri ng lineIte mPaidAmoun tFormatted = "$10.00 "; | |
| 280 | Stri ng lineIte mCheckNumb er = payme ntTracking number; | |
| 281 | Stri ng lineIte mAdjAmts = "$0.00"; | |
| 282 | Stri ng lineIte mCodes = " 97"; | |
| 283 | Stri ng lineIte mCagcCodes = "ABC"; | |
| 284 | Stri ng lineIte mRarcCodes = "EFG"; | |
| 285 | ||
| 286 | Line ItemRespon se newReqp onse = new LineItemR esponse(cl aimProcedu reSeq, too thCode, to othSurface , toothSur faceCd2, | |
| 287 | toothSur faceCd3, t oothSurfac eCd4, toot hSurfaceCd 5, procCod e, revenue Code, | |
| 288 | procCode Desc, diag Pointer, s erviceFrom Date, serv iceToDate, | |
| 289 | billedAm ount, bill edUnits , modifier1, modifier2 , modifier 3, | |
| 290 | modifier 4, lineSta tus, lineI temTreasur yPaymentDa teFormatte d, | |
| 291 | lineItem PaidAmount Formatted, lineItemC heckNumber , lineItem AdjAmts, | |
| 292 | lineItem Codes, lin eItemCagcC odes, line ItemRarcCo des); | |
| 293 | ||
| 294 | ||
| 295 | line ItemRespon ses.add(ne wReqponse) ; | |
| 296 | ||
| 297 | retu rn lineIte mResponses ; | |
| 298 | } | |
| 299 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.