Produced by Araxis Merge on 4/5/2017 4:26:29 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:\working_scrub\Unredacted\VAP Code Base\VAP_Bld2_Source_Code_CIF_2017-02-14\nvap-server\src\test\java\gov\va\nvap\server\test\endpoint\psim | PersonServiceEndpointTest.java | Wed Feb 1 18:37:28 2017 UTC |
| 2 | eHX-CIF.zip\eHX-CIF\VAP Code Base\VAP_Bld2_Source_Code_CIF_2017-02-14\nvap-server\src\test\java\gov\va\nvap\server\test\endpoint\psim | PersonServiceEndpointTest.java | Wed Apr 5 15:06:47 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 138 |
| 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 | /* | |
| 2 | * To chan ge this te mplate, ch oose Tools | Templat es | |
| 3 | * and ope n the temp late in th e editor. | |
| 4 | */ | |
| 5 | package go v.va.nvap. server.tes t.endpoint .psim; | |
| 6 | ||
| 7 | import gov .va.nvap.s erver.endp oint.psim. PersonServ iceEndpoin t; | |
| 8 | import gov .va.nvap.s erver.endp oint.psim. PersonServ iceExcepti on; | |
| 9 | ||
| 10 | import jav a.util.Lis t; | |
| 11 | import jun it.framewo rk.Assert; | |
| 12 | import org .junit.Bef ore; | |
| 13 | import org .junit.Tes t; | |
| 14 | import org .springfra mework.ws. client.cor e.WebServi ceTemplate ; | |
| 15 | ||
| 16 | /** | |
| 17 | * | |
| 18 | * @author vhaislegb erb | |
| 19 | */ | |
| 20 | public cla ss PersonS erviceEndp ointTest { | |
| 21 | ||
| 22 | privat e static S tring GOOD _VPID = "1 012593913" ; | |
| 23 | privat e static S tring BAD_ VPID = "10 12133474"; | |
| 24 | privat e static S tring INVA LID_VPID = "10121334 "; | |
| 25 | privat e WebServi ceTemplate wsTemplat e; | |
| 26 | ||
| 27 | @Befor e | |
| 28 | public void befo reTest() { | |
| 29 | ws Template = new WebSe rviceTempl ate(); | |
| 30 | wsTemplate .setDefaul tUri("http ://
|
|
| 31 | } | |
| 32 | ||
| 33 | @Test | |
| 34 | public void test DummyTestM ethod() | |
| 35 | { | |
| 36 | } | |
| 37 | ||
| 38 | //@Tes t | |
| 39 | public void test PersonServ iceEndpoin tSuccess() { | |
| 40 | Pe rsonServic eEndpoint pse = new PersonServ iceEndpoin t(); | |
| 41 | ps e.setPsimT emplate(ws Template); | |
| 42 | Li st<String> vpids = p se.getCorr elatedIds( GOOD_VPID) ; | |
| 43 | As sert.asser tTrue(vpid s.size() = = 1); | |
| 44 | As sert.asser tTrue(vpid s.get(0).s tartsWith( GOOD_VPID) ); | |
| 45 | } | |
| 46 | ||
| 47 | //@Tes t(expected = PersonS erviceExce ption.clas s) | |
| 48 | public void test PersonServ iceEndpoin tFail() { | |
| 49 | tr y { | |
| 50 | PersonSe rviceEndpo int pse = new Person ServiceEnd point(); | |
| 51 | pse.setP simTemplat e(wsTempla te); | |
| 52 | pse.getC orrelatedI ds(BAD_VPI D); | |
| 53 | } catch (Per sonService Exception pse) { | |
| 54 | System.o ut.println (pse.getMe ssage()); | |
| 55 | throw ps e; | |
| 56 | } | |
| 57 | } | |
| 58 | ||
| 59 | //@Tes t(expected = Illegal ArgumentEx ception.cl ass) | |
| 60 | public void test PersonServ iceEndpoin tInvalidVp id() { | |
| 61 | tr y { | |
| 62 | PersonSe rviceEndpo int pse = new Person ServiceEnd point(); | |
| 63 | pse.setP simTemplat e(wsTempla te); | |
| 64 | pse.getC orrelatedI ds(INVALID _VPID); | |
| 65 | } catch (Ill egalArgume ntExceptio n iae) { | |
| 66 | System.o ut.println (iae.getMe ssage()); | |
| 67 | throw ia e; | |
| 68 | } | |
| 69 | } | |
| 70 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.