Produced by Araxis Merge on 2/4/2019 11:34:04 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | MHPRO_v1.x.zip\mhpro-resources-master@a26412b610c.zip\ws\src\test\java\gov\va\mobile\vamf\mhpro\datalayer | AssessmentVoiceInfoRepositoryTest.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\datalayer | AssessmentVoiceInfoRepositoryTest.java | Mon Feb 4 15:13:47 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 112 |
| Changed | 1 | 2 |
| 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.mobil e.vamf.mhp ro.datalay er; | |
| 2 | ||
| 3 | import jav a.util.Lis t; | |
| 4 | ||
| 5 | import org .junit.Ass ert; | |
| 6 | import org .junit.Tes t; | |
| 7 | import org .junit.run ner.RunWit h; | |
| 8 | import org .springfra mework.bea ns.factory .annotatio n.Autowire d; | |
| 9 | import org .springfra mework.tes t.context. ContextCon figuration ; | |
| 10 | import org .springfra mework.tes t.context. junit4.Spr ingJUnit4C lassRunner ; | |
| 11 | import org .springfra mework.tes t.context. web.WebApp Configurat ion; | |
| 12 | ||
| 13 | import gov .va.mobile .vamf.mhpr o.domain.A ssessmentV oiceInfo; | |
| 14 | import gov .va.mobile .vamf.mhpr o.service. IAssessmen tVoiceInfo Service; | |
| 15 | ||
| 16 | /** | |
| 17 | * | |
| 18 | * @author PII | |
| 19 | * | |
| 20 | */ | |
| 21 | @RunWith(S pringJUnit 4ClassRunn er.class) | |
| 22 | @WebAppCon figuration | |
| 23 | @ContextCo nfiguratio n({ "class path:appli cationCont ext.xml", "classpath :dispatche r-servlet. xml", | |
| 24 | "cla sspath:mon goContext. xml" }) | |
| 25 | public cla ss Assessm entVoiceIn foReposito ryTest { | |
| 26 | ||
| 27 | @A utowired | |
| 28 | pr ivate Asse ssmentVoic eInfoRepos itory repo ; | |
| 29 | ||
| 30 | @T est | |
| 31 | pu blic void testFindBy ScopeIgnor eCaseAndAs sessmentNa meIgnoreCa seAndLowSc oreLessTha nEqualAndH ighScoreGr eaterThanE qual() { | |
| 32 | for (String sc ope : new String[] { IAssessme ntVoiceInf oService.S COPE_PATIE NT, | |
| 33 | IAssessm entVoiceIn foService. SCOPE_PROV IDER }) { | |
| 34 | for (S tring asse ssmentName : new Str ing[] { // | |
| 35 | "GAD-7", / / | |
| 36 | "PCL-5", | |
| 37 | // "BAM-R" , | |
| 38 | "PHQ-9" }) { | |
| 39 | for (int score = 0 ; score <= 20; score += 5) { | |
| 40 | for (int c acheAttemp t = 0; cac heAttempt < 5; cache Attempt++) { | |
| 41 | /* | |
| 42 | * All attem pts after the first for a spec ific | |
| 43 | * combinati on of scop e, assessm entName an d score sh ould | |
| 44 | * be cached and retur n immediat ely - moni tor log4j | |
| 45 | * output - CPB | |
| 46 | * / | |
| 47 | Li st<Assessm entVoiceIn fo> result s = repo | |
| 48 | .findB yScopeIgno reCaseAndA ssessmentN ameIgnoreC aseAndLowS coreLessTh anEqualAnd HighScoreG reaterThan Equal( | |
| 49 | scope, ass essmentNam e, score, score); | |
| 50 | As sert.asser tEquals("P arams " + scope + ", " + asses smentName + ", " + s core, 1, | |
| 51 | result s.size()); | |
| 52 | } | |
| 53 | } | |
| 54 | } | |
| 55 | } | |
| 56 | } | |
| 57 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.