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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | MHPRO_v1.x.zip\mhpro-resources-master@a26412b610c.zip\ws\src\test\java\gov\va\mobile\vamf\mhpro\exception | NoRecordsFoundExceptionTest.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\exception | NoRecordsFoundExceptionTest.java | Fri Feb 1 19:27:42 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 168 |
| 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.excepti on; | |
| 2 | ||
| 3 | import sta tic org.ha mcrest.Mat cherAssert .assertTha t; | |
| 4 | import sta tic org.ha mcrest.Mat chers.cont ainsString ; | |
| 5 | import sta tic org.ju nit.Assert .assertEqu als; | |
| 6 | import sta tic org.ju nit.Assert .assertNot Null; | |
| 7 | import sta tic org.ju nit.Assert .assertNul l; | |
| 8 | ||
| 9 | import org .junit.Bef ore; | |
| 10 | import org .junit.Bef oreClass; | |
| 11 | import org .junit.Tes t; | |
| 12 | import org .junit.run ner.RunWit h; | |
| 13 | import org .mockito.r unners.Moc kitoJUnitR unner; | |
| 14 | ||
| 15 | /** | |
| 16 | * @author PII | |
| 17 | * | |
| 18 | * Unit te st MHPro N oRecordsFo undExcepti on methods | |
| 19 | */ | |
| 20 | @RunWith(M ockitoJUni tRunner.cl ass) | |
| 21 | public cla ss NoRecor dsFoundExc eptionTest { | |
| 22 | ||
| 23 | @B efore | |
| 24 | pu blic void setup() { | |
| 25 | } | |
| 26 | ||
| 27 | /* * | |
| 28 | * Test NoRe cordsFound Exception with no pa rameters | |
| 29 | * / | |
| 30 | @T est | |
| 31 | pu blic void testNoReco rdsFoundEx ception() { | |
| 32 | NoRe cordsFound Exception ex = new N oRecordsFo undExcepti on(); | |
| 33 | ||
| 34 | asse rtNotNull( ex); | |
| 35 | asse rtNull(ex. getMessage ()); | |
| 36 | } | |
| 37 | ||
| 38 | /* * | |
| 39 | * Test NoRe cordsFound Exception with Throw able as pa rameter | |
| 40 | * / | |
| 41 | @T est | |
| 42 | pu blic void testNoReco rdsFoundEx ception_Wi thThrowabl e() { | |
| 43 | Stri ng msg = " Throwable" ; | |
| 44 | Thro wable caus e = new Th rowable(ms g); | |
| 45 | ||
| 46 | NoRe cordsFound Exception ex = new N oRecordsFo undExcepti on(cause); | |
| 47 | ||
| 48 | asse rtNotNull( ex); | |
| 49 | asse rtNotNull( cause); | |
| 50 | asse rtNotNull( ex.getMess age()); | |
| 51 | asse rtNotNull( cause.getM essage()); | |
| 52 | asse rtThat(ex. getMessage (), contai nsString(c ause.getMe ssage())); | |
| 53 | asse rtThat(ex. getMessage (), contai nsString(m sg)); | |
| 54 | } | |
| 55 | ||
| 56 | /* * | |
| 57 | * Test NoRe cordsFound Exception with a dev eloper mes sage and T hrowable a s paramete rs | |
| 58 | * / | |
| 59 | @T est | |
| 60 | pu blic void testNoReco rdsFoundEx ception_Wi thMsgAndTh rowable() { | |
| 61 | Stri ng methodN ame = Mhpr oException Utils.getM ethodName( ); | |
| 62 | Stri ng msg = m ethodName; | |
| 63 | Thro wable caus e = new Th rowable("T hrowable") ; | |
| 64 | ||
| 65 | NoRe cordsFound Exception ex = new N oRecordsFo undExcepti on(msg, ca use); | |
| 66 | ||
| 67 | asse rtNotNull( ex); | |
| 68 | asse rtNotNull( ex.getMess age()); | |
| 69 | asse rtEquals(m sg, ex.get Message()) ; | |
| 70 | } | |
| 71 | ||
| 72 | /* * | |
| 73 | * Test NoRe cordsFound Exception with a dev eloper mes sage param eter | |
| 74 | * / | |
| 75 | @T est | |
| 76 | pu blic void testNoReco rdsFoundEx ception_Wi thMsg() { | |
| 77 | Stri ng methodN ame = Mhpr oException Utils.getM ethodName( ); | |
| 78 | Stri ng msg = m ethodName; | |
| 79 | ||
| 80 | NoRe cordsFound Exception ex = new N oRecordsFo undExcepti on(msg); | |
| 81 | ||
| 82 | asse rtNotNull( ex); | |
| 83 | asse rtEquals(m sg, ex.get Message()) ; | |
| 84 | } | |
| 85 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.