Produced by Araxis Merge on 4/2/2019 1:06:57 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.
# | Location | File | Last Modified |
---|---|---|---|
1 | C:\AraxisMergeCompare\Pri_un\ARS_Backend\ars_app\src\test\java\gov\va\med\ars\service\impl | RfaiPopulateClaimServiceImplTest.java | Wed Mar 27 19:22:52 2019 UTC |
2 | C:\AraxisMergeCompare\Pri_re\ARS_Backend\ars_app\src\test\java\gov\va\med\ars\service\impl | RfaiPopulateClaimServiceImplTest.java | Thu Mar 28 17:51:14 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.med.a rs.service .impl; | |
2 | ||
3 | import sta tic org.ju nit.Assert .assertEqu als; | |
4 | import sta tic org.ju nit.Assert .assertNot Null; | |
5 | import sta tic org.mo ckito.Mock ito.when; | |
6 | ||
7 | import jav a.math.Big Integer; | |
8 | import jav a.util.Arr ayList; | |
9 | import jav a.util.Lis t; | |
10 | ||
11 | import org .junit.Tes t; | |
12 | import org .junit.run ner.RunWit h; | |
13 | import org .mockito.I njectMocks ; | |
14 | import org .mockito.M ock; | |
15 | import org .mockito.r unners.Moc kitoJUnitR unner; | |
16 | ||
17 | import gov .va.med.ar s.dao.ars. IClaimSubm issionRepo sitory; | |
18 | ||
19 | /** | |
20 | * @author
|
|
21 | * | |
22 | */ | |
23 | @RunWith(M ockitoJUni tRunner.cl ass) | |
24 | public cla ss RfaiPop ulateClaim ServiceImp lTest { | |
25 | ||
26 | @M ock | |
27 | IC laimSubmis sionReposi tory claim Submission Repository ; | |
28 | ||
29 | @I njectMocks | |
30 | Rf aiPopulate ClaimServi ceImpl rfa iPopulateC laimServic eImpl; | |
31 | ||
32 | @T est | |
33 | pu blic void testInject ions() { | |
34 | asse rtNotNull( "RfaiPopul ateClaimSe rviceImpl Injections Failed", rfaiPopula teClaimSer viceImpl); | |
35 | } | |
36 | ||
37 | /* * | |
38 | * Test meth od for | |
39 | * {@link go v.va.med.a rs.service .impl.Rfai PopulateCl aimService Impl#getCl aimSubmiss ionStatus( java.lang. Long)}. | |
40 | * / | |
41 | @T est | |
42 | pu blic void testGetCla imSubmissi onStatus() throws Ex ception { | |
43 | ||
44 | List <String> s ubmissionS tatusList = new Arra yList<>(); | |
45 | subm issionStat usList.add ("PENDING" ); | |
46 | subm issionStat usList.add ("COMPLETE "); | |
47 | subm issionStat usList.add ("ABANDON" ); | |
48 | subm issionStat usList.add ("SUBMITTE D"); | |
49 | ||
50 | when (claimSubm issionRepo sitory.get ClaimSubmi ssions(new BigIntege r("1"))).t henReturn( submission StatusList ); | |
51 | Bool ean pendin gSubmissio nFound = r faiPopulat eClaimServ iceImpl.ge tClaimSubm issionStat us(new Big Integer("1 ")); | |
52 | ||
53 | asse rtEquals(p endingSubm issionFoun d, Boolean .TRUE); | |
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.