24. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/8/2017 1:33:40 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.

24.1 Files compared

# Location File Last Modified
1 PC_CP4_CiF.zip\FPPS_Backend\fpps_app\src\test\java\gov\va\med\fee\integration UserSearchControllerIntegrationTest.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\integration UserSearchControllerIntegrationTest.java Fri Dec 8 18:30:12 2017 UTC

24.2 Comparison summary

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

24.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

24.4 Active regular expressions

No regular expressions were active.

24.5 Comparison detail

  1   package go v.va.med.f ee.integra tion;
  2  
  3   import sta tic org.ju nit.Assert .assertFal se;
  4   import sta tic org.sp ringframew ork.test.w eb.servlet .request.M ockMvcRequ estBuilder s.post;
  5   import sta tic org.sp ringframew ork.test.w eb.servlet .result.Mo ckMvcResul tHandlers. print;
  6  
  7   import org .apache.lo gging.log4 j.LogManag er;
  8   import org .apache.lo gging.log4 j.Logger;
  9   import org .junit.Bef ore;
  10   import org .junit.Tes t;
  11   import org .junit.run ner.RunWit h;
  12   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
  13   import org .springfra mework.htt p.HttpStat us;
  14   import org .springfra mework.htt p.MediaTyp e;
  15   import org .springfra mework.moc k.web.Mock HttpServle tResponse;
  16   import org .springfra mework.tes t.context. ContextCon figuration ;
  17   import org .springfra mework.tes t.context. junit4.Spr ingJUnit4C lassRunner ;
  18   import org .springfra mework.tes t.context. web.WebApp Configurat ion;
  19   import org .springfra mework.tes t.web.serv let.MockMv c;
  20   import org .springfra mework.tes t.web.serv let.Result Actions;
  21   import org .springfra mework.tes t.web.serv let.setup. MockMvcBui lders;
  22   import org .springfra mework.web .context.W ebApplicat ionContext ;
  23  
  24   import com .fasterxml .jackson.d atabind.Ob jectMapper ;
  25   import com .fasterxml .jackson.d atabind.Ob jectWriter ;
  26   import com .fasterxml .jackson.d atabind.Se rializatio nFeature;
  27  
  28   import gov .va.med.fe e.configur ation.AppC onfig;
  29   import gov .va.med.fe e.configur ation.hibe rnate.Pers istenceCon fig;
  30   import gov .va.med.fe e.configur ation.spri ng.SpringM vcConfig;
  31   import gov .va.med.fe e.model.re quest.User SearchRequ est;
  32  
  33   @WebAppCon figuration
  34   @RunWith(S pringJUnit 4ClassRunn er.class)
  35   @ContextCo nfiguratio n(classes  = { AppCon fig.class,  Persisten ceConfig.c lass, Spri ngMvcConfi g.class })
  36   public cla ss UserSea rchControl lerIntegra tionTest {
  37           pr ivate stat ic final L ogger logg er = LogMa nager.getL ogger(User SearchCont rollerInte grationTes t.class);
  38           
  39           @A utowired
  40           pr ivate WebA pplication Context wa c;
  41           pr ivate Mock Mvc mockMv c;
  42           
  43           @A utowired 
  44           Mo ckHttpServ letRespons e response ;
  45  
  46           @B efore
  47           pu blic void  setup() {
  48                    this .mockMvc =  MockMvcBu ilders.web AppContext Setup(this .wac).buil d();
  49           }
  50           
  51           @T est
  52           pu blic void  test_searc hUser() th rows Excep tion {
  53                    User SearchRequ est userSe archReques t = new Us erSearchRe quest();
  54                    
  55                     userSearch Request.se tEmail(" PII         ");
  56                     userSearch Request.se tUserName( " DN S      ABC");
  57                    
  58                    Obje ctMapper m apper = ne w ObjectMa pper();
  59                    mapp er.configu re(Seriali zationFeat ure.WRAP_R OOT_VALUE,  false);
  60                    Obje ctWriter o w = mapper .writer(). withDefaul tPrettyPri nter();
  61                    Stri ng request Json = ow. writeValue AsString(u serSearchR equest);
  62                    
  63                    Resu ltActions  s = mockMv c.perform( post("/api /v1/user/s earch").co ntentType( MediaType. APPLICATIO N_JSON).co ntent(requ estJson)). andDo(prin t());
  64                    
  65                    logg er.info("t est_userSe arch:" + s .andReturn ().getResp onse().get Status());
  66                    asse rtFalse(Ht tpStatus.O K.value()  != s.andRe turn().get Response() .getStatus ());
  67           }        
  68   }