280. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 2/4/2019 11:34:05 AM Eastern 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.

280.1 Files compared

# Location File Last Modified
1 MHPRO_v1.x.zip\mhpro-resources-master@a26412b610c.zip\ws\src\test\java\gov\va\mobile\vamf\mhpro\rpc\dao\impl RpcChoiceTypeDescribeDAOTest.java Tue Nov 14 19:31:17 2017 UTC
2 MHPRO_v1.x.zip\mhpro-resources-master@a26412b610c.zip\ws\src\test\java\gov\va\mobile\vamf\mhpro\rpc\dao\impl RpcChoiceTypeDescribeDAOTest.java Fri Feb 1 19:27:43 2019 UTC

280.2 Comparison summary

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

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

280.4 Active regular expressions

No regular expressions were active.

280.5 Comparison detail

  1   package go v.va.mobil e.vamf.mhp ro.rpc.dao .impl;
  2  
  3   import sta tic org.ju nit.Assert .assertNot Null;
  4   import sta tic org.ju nit.Assert .assertTru e;
  5   import sta tic org.mo ckito.Matc hers.any;
  6   import sta tic org.mo ckito.Mock ito.when;
  7  
  8   import jav a.util.Arr ayList;
  9   import jav a.util.Has hMap;
  10   import jav a.util.Lis t;
  11   import jav a.util.Map ;
  12  
  13   import jav ax.resourc e.cci.Conn ectionSpec ;
  14  
  15   import org .junit.Aft er;
  16   import org .junit.Bef ore;
  17   import org .junit.Tes t;
  18   import org .junit.run ner.RunWit h;
  19   import org .mockito.M ock;
  20   import org .mockito.r unners.Moc kitoJUnitR unner;
  21   import org .springfra mework.tes t.util.Ref lectionTes tUtils;
  22  
  23   import gov .va.med.ci ss.service .VistaCust omization;
  24   import gov .va.med.ci ss.service .log.Logge rListener;
  25   import gov .va.med.ci ss.service .vista.RPC Exception;
  26   import gov .va.med.ci ss.service .vista.Rpc ServiceUti l;
  27   import gov .va.med.ci ss.service .vista.Rpc ServiceUti lFactory;
  28   import gov .va.med.ci ss.service .vista.Rpc Uitl;
  29   import gov .va.med.ci ss.service .vistalink .KaajeeSer vice;
  30   import gov .va.med.ci ss.service .vistalink .VistaLink Service;
  31   import gov .va.mobile .vamf.mhpr o.rpc.Answ er;
  32   import gov .va.mobile .vamf.mhpr o.rpc.Choi ce;
  33   import gov .va.mobile .vamf.mhpr o.service. IVistaLink AuditServi ce;
  34  
  35   /**
  36    * @author   PII
  37    *
  38    * The Cla ss RpcChoi ceTypeDesc ribeDAOTes t.
  39    */
  40   @RunWith(M ockitoJUni tRunner.cl ass)
  41   public cla ss RpcChoi ceTypeDesc ribeDAOTes t {
  42  
  43           /* * The rpc  choices da o. */
  44           pr ivate RpcC hoiceTypeD escribeDAO  rpcChoice TypeDescri beDAO;
  45           
  46           /* * The rpc  service ut il factory . */
  47           @M ock
  48           pr ivate RpcS erviceUtil Factory rp cServiceUt ilFactory;
  49           @M ock
  50       privat e IVistaLi nkAuditSer vice vista LinkAuditS ervice;
  51           
  52       protec ted static  final Str ing RPC_NA ME = "YTQ  ALL ANSWER S";
  53           pr ivate stat ic final S tring MCHO ICE = "MCH OICE";
  54           pr ivate stat ic final S tring STRI NG = "STRI NG";
  55  
  56           /* *
  57            *  Sets the  up.
  58            *
  59            *  @throws E xception t he excepti on
  60            * /
  61           @B efore
  62           pu blic void  setUp() th rows Excep tion {
  63                    rpcC hoiceTypeD escribeDAO  = new Rpc ChoiceType DescribeDA O();
  64                    Refl ectionTest Utils.setF ield(rpcCh oiceTypeDe scribeDAO,  "rpcServi ceUtilFact ory", rpcS erviceUtil Factory); 
  65                    
  66                    Refl ectionTest Utils.setF ield(rpcCh oiceTypeDe scribeDAO,  "vistaLin kAuditServ ice", vist aLinkAudit Service);          
  67           }
  68  
  69           /* *
  70            *  Tear down .
  71            *
  72            *  @throws E xception t he excepti on
  73            * /
  74           @A fter
  75           pu blic void  tearDown()  throws Ex ception {
  76           }
  77  
  78           /* *
  79            *  Test rpc  ChoiceType Describe d ao.
  80            *
  81            *  @throws E xception t he excepti on
  82            * /
  83           @T est
  84           pu blic void  testRpcCho icesDAO()  throws Exc eption {
  85                    Mock RpcService Util mockU til = new  MockRpcSer viceUtil(n ull,null,  null);
  86                    when (rpcServic eUtilFacto ry.getInst ance(any(O bject.clas s))).thenR eturn(mock Util);
  87                    
  88                    Stri ng divisio n = "442";
  89                    Stri ng adminis trationId  = "1";
  90           St ring duz =  "74";
  91                    List <Object> a rguments =  new Array List<>();
  92                    Map< String, St ring> map  = new Hash Map<>();
  93                    
  94                    map. put("AD",  administra tionId);
  95                    argu ments.add( map);
  96  
  97                    Vist aAccessLog Entry entr y = new Vi staAccessL ogEntry(di vision, du z, RPC_NAM E, map);
  98  
  99                    Stri ng choice  = rpcChoic eTypeDescr ibeDAO.ret rieveChoic eTypeDescr ibe(divisi on, "GAD-7 ", entry);
  100                    asse rtNotNull( choice);
  101           }
  102  
  103           /* *
  104            *  The Class  MockRpcSe rviceUtil.
  105            * /
  106           cl ass MockRp cServiceUt il extends  RpcServic eUtil {
  107                    
  108                    /**  The Consta nt EOL. */
  109                    priv ate final  static Str ing EOL =  "\n";
  110                    
  111                    /**  The Consta nt data. * /
  112                    priv ate final  static Str ing data =  
  113                                               "[DATA]" +  EOL +
  114                                                       "2 4173^1^212 ^Not at al l^1" + EOL  +
  115                                                       "2 4173^2^100 8^Several  days^2" +  EOL +
  116                                                       "2 4173^3^100 9^More tha n half the  days^3" +  EOL +
  117                                                       "2 4173^4^101 0^Nearly e very day^4 " + EOL +
  118                                                       "2 4174^1^212 ^Not at al l^1" + EOL  +
  119                                                       "2 4174^2^100 8^Several  days^2" +  EOL +
  120                                                       "2 4174^3^100 9^More tha n half the  days^3" +  EOL +
  121                                                       "2 4174^4^101 0^Nearly e very day^4 " + EOL +
  122                                                       "2 4175^1^212 ^Not at al l^1" + EOL  +
  123                                                       "2 4175^2^100 8^Several  days^2" +  EOL +
  124                                                       "2 4175^3^100 9^More tha n half the  days^3" +  EOL +
  125                                                       "2 4175^4^101 0^Nearly e very day^4 " + EOL +
  126                                                       "2 4176^1^212 ^Not at al l^1" + EOL  +
  127                                                       "2 4176^2^100 8^Several  days^2" +  EOL +
  128                                                       "2 4176^3^100 9^More tha n half the  days^3" +  EOL +
  129                                                       "2 4176^4^101 0^Nearly e very day^4 " + EOL +
  130                                                       "2 4177^1^212 ^Not at al l^1" + EOL  +
  131                                                       "2 4177^2^100 8^Several  days^2" +  EOL +
  132                                                       "2 4177^3^100 9^More tha n half the  days^3" +  EOL +
  133                                                       "2 4177^4^101 0^Nearly e very day^4 " + EOL +
  134                                                       "2 4178^1^212 ^Not at al l^1" + EOL  +
  135                                                       "2 4178^2^100 8^Several  days^2" +  EOL +
  136                                                       "2 4178^3^100 9^More tha n half the  days^3" +  EOL +
  137                                                       "2 4178^4^101 0^Nearly e very day^4 " + EOL +
  138                                                       "2 4179^1^212 ^Not at al l^1" + EOL  +
  139                                                       "2 4179^2^100 8^Several  days^2" +  EOL +
  140                                                       "2 4179^3^100 9^More tha n half the  days^3" +  EOL +
  141                                                       "2 4179^4^101 0^Nearly e very day^4 ";
  142  
  143                    /* ( non-Javado c)
  144                     * @ see gov.va .med.ciss. service.vi sta.RpcSer viceUtil#r unRpc(java .lang.Stri ng, java.l ang.String , java.uti l.List, go v.va.med.c iss.servic e.VistaCus tomization [])
  145                     */
  146                    @Ove rride
  147                    publ ic String  runRpc(Str ing arg0,  String arg 1, List<Ob ject> arg2 ,
  148                                      VistaCus tomization ... arg3)  throws RPC Exception  {
  149                             // TOD O Auto-gen erated met hod stub
  150                             String  result =  data;
  151                             return  result;
  152                    }
  153  
  154                    /* ( non-Javado c)
  155                     * @ see gov.va .med.ciss. service.vi sta.RpcSer viceUtil#s etLoggerCa llback(gov .va.med.ci ss.service .log.Logge rListener)
  156                     */
  157                    @Ove rride
  158                    publ ic void se tLoggerCal lback(Logg erListener  loggerCal lback) {
  159                             // TOD O Auto-gen erated met hod stub
  160                             super. setLoggerC allback(lo ggerCallba ck);
  161                    }
  162  
  163                    /**
  164                     * I nstantiate s a new mo ck rpc ser vice util.
  165                     *
  166                     * @ param conn Spec the c onn spec
  167                     * @ param kaaj eeService  the kaajee  service
  168                     * @ param vist aLinkServi ce the vis ta link se rvice
  169                     */
  170                    publ ic MockRpc ServiceUti l(Connecti onSpec con nSpec,
  171                                      KaajeeSe rvice kaaj eeService,  VistaLink Service vi staLinkSer vice) {
  172                             super( connSpec,  kaajeeServ ice, vista LinkServic e);
  173                             // TOD O Auto-gen erated con structor s tub
  174                    }
  175           }        
  176   }