119. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 4/27/2018 2:59:15 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.

119.1 Files compared

# Location File Last Modified
1 v2.0_Sprint_15_Build_5.zip\v2.0_Sprint_15_Build_5\Unredacted\ARS_Backend\ars_app\src\test\java\gov\va\med\ars\integration RfaiControllerIntegrationTest.java Tue Apr 24 14:49:58 2018 UTC
2 v2.0_Sprint_15_Build_5..zip\v2.0_Sprint_15_Build_5\Unredacted\ARS_Backend\ars_app\src\test\java\gov\va\med\ars\integration RfaiControllerIntegrationTest.java Thu Apr 26 16:39:50 2018 UTC

119.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 178
Changed 1 2
Inserted 0 0
Removed 0 0

119.3 Comparison options

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

119.4 Active regular expressions

No regular expressions were active.

119.5 Comparison detail

  1   /**
  2    * 
  3    */
  4   package go v.va.med.a rs.integra tion;
  5  
  6   import sta tic org.ju nit.Assert .assertFal se;
  7   import sta tic org.sp ringframew ork.test.w eb.servlet .request.M ockMvcRequ estBuilder s.get;
  8   import sta tic org.sp ringframew ork.test.w eb.servlet .result.Mo ckMvcResul tHandlers. print;
  9   import sta tic org.sp ringframew ork.test.w eb.servlet .result.Mo ckMvcResul tMatchers. content;
  10   import sta tic org.sp ringframew ork.test.w eb.servlet .result.Mo ckMvcResul tMatchers. status;
  11  
  12   import org .apache.lo gging.log4 j.LogManag er;
  13   import org .apache.lo gging.log4 j.Logger;
  14   import org .junit.Bef ore;
  15   import org .junit.Ign ore;
  16   import org .junit.Tes t;
  17   import org .junit.run ner.RunWit h;
  18   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
  19   import org .springfra mework.htt p.HttpStat us;
  20   import org .springfra mework.tes t.context. ContextCon figuration ;
  21   import org .springfra mework.tes t.context. junit4.Spr ingJUnit4C lassRunner ;
  22   import org .springfra mework.tes t.context. web.WebApp Configurat ion;
  23   import org .springfra mework.tes t.web.serv let.MockMv c;
  24   import org .springfra mework.tes t.web.serv let.Result Actions;
  25   import org .springfra mework.tes t.web.serv let.setup. MockMvcBui lders;
  26   import org .springfra mework.web .context.W ebApplicat ionContext ;
  27  
  28   import gov .va.med.ar s.configur ation.AppC onfig;
  29   import gov .va.med.ar s.configur ation.spri ng.SpringM vcConfig;
  30  
  31   /**
  32    * @author   PI I
  33    *
  34    */
  35   @WebAppCon figuration
  36   @RunWith(S pringJUnit 4ClassRunn er.class)
  37   @ContextCo nfiguratio n(classes  = { AppCon fig.class,  SpringMvc Config.cla ss })
  38   public cla ss RfaiCon trollerInt egrationTe st {
  39   private st atic final  Logger lo gger = Log Manager.ge tLogger(Rf aiControll erIntegrat ionTest.cl ass);
  40           
  41           @A utowired
  42           pr ivate WebA pplication Context wa c;
  43           pr ivate Mock Mvc mockMv c;
  44  
  45           @B efore
  46           pu blic void  setup() {
  47                    this .mockMvc =  MockMvcBu ilders.web AppContext Setup(this .wac).buil d();
  48           }
  49           
  50           @I gnore
  51           pu blic void  testGetCla ims_Succes s() throws  Exception  {
  52                    
  53                    Resu ltActions  s = mockMv c.perform( get("/api/ v1/populat eClaim/{cl aimIndex}" , 20061720 3000156L)) .andDo(pri nt())
  54                                      .andExpe ct(status( ).isOk()). andExpect( content(). contentTyp e("applica tion/json; charset=UT F-8"));
  55  
  56                    logg er.info("t estGetClai ms_Success :" + s.and Return().g etResponse ().getStat us());
  57                    asse rtFalse(Ht tpStatus.O K.value()  != s.andRe turn().get Response() .getStatus ());
  58           }
  59           
  60           @T est
  61           pu blic void  testGetCla ims_LargeN umber_Fail ure() thro ws Excepti on {
  62                    
  63                    Resu ltActions  s = mockMv c.perform( get("/api/ v1/populat eClaim/{cl aimIndex}" , 12345678 910111213L )).andDo(p rint())
  64                                      .andExpe ct(status( ).is4xxCli entError() );
  65  
  66                    logg er.info("t estGetClai ms_Failure :" + s.and Return().g etResponse ().getStat us());
  67                    asse rtFalse(Ht tpStatus.O K.value()  == s.andRe turn().get Response() .getStatus ());
  68           }
  69           
  70           @T est
  71           pu blic void  testGetPdi _Failure()  throws Ex ception {
  72                    
  73                    Resu ltActions  s = mockMv c.perform( get("/api/ v1/populat eClaim/{cl aimIndex}" , 12345678 9101112L)) .andDo(pri nt())
  74                                      .andExpe ct(status( ).is4xxCli entError() );
  75  
  76                    logg er.info("t estGetClai ms_Failure :" + s.and Return().g etResponse ().getStat us());
  77                    asse rtFalse(Ht tpStatus.O K.value()  == s.andRe turn().get Response() .getStatus ());
  78           }
  79           
  80           @T est
  81           pu blic void  testGetPdi _Inappropr iate_Numbe r_Failure( ) throws E xception {
  82                    
  83                    Resu ltActions  s = mockMv c.perform( get("/api/ v1/populat eClaim/{cl aimIndex}" , 20061720 3000180L)) .andDo(pri nt())
  84                                      .andExpe ct(status( ).is4xxCli entError() );
  85  
  86                    logg er.info("t estGetClai ms_Success :" + s.and Return().g etResponse ().getStat us());
  87                    asse rtFalse(Ht tpStatus.O K.value()  == s.andRe turn().get Response() .getStatus ());
  88           }
  89  
  90   }