Produced by Araxis Merge on 9/24/2019 1:38:08 PM Eastern 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 | PCL-5_v1_build_8.zip\v1_build 8\Unredacted\spp_mha_web-development.zip\spp_mha_web-development\mha-web\src\test\java\com\va\med\mha\admin\dto | ConnectorDTOTest.java | Wed Jul 31 17:35:31 2019 UTC |
| 2 | PCL-5_v1_build_8.zip\v1_build 8\Unredacted\spp_mha_web-development.zip\spp_mha_web-development\mha-web\src\test\java\com\va\med\mha\admin\dto | ConnectorDTOTest.java | Fri Sep 20 17:44:04 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 174 |
| 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 co m.va.med.m ha.admin.d to; | |
| 2 | ||
| 3 | import org .junit.Ass ert; | |
| 4 | import org .junit.Bef ore; | |
| 5 | import org .junit.Tes t; | |
| 6 | ||
| 7 | public cla ss Connect orDTOTest{ | |
| 8 | ||
| 9 | pr ivate fina l String T EST_IP = " 1111"; | |
| 10 | private fi nal Intege r TEST_POR T = PORT ; | |
| 11 | privat e final St ring TEST_ ACCESS = " access"; | |
| 12 | privat e final St ring TEST_ VERIFY = " verify"; | |
| 13 | privat e final St ring TEST_ STATION_NA ME = "stat ionName"; | |
| 14 | privat e final St ring TEST_ STATION_NU M = "stati onNum"; | |
| 15 | privat e final St ring TEST_ JNDINAME = "jndiName "; | |
| 16 | privat e final St ring TEST_ TOSTRING = "{\"ip\": \"1111\",\ "port\":22 22,\"acces s\":\"acce ss\",\"ver ify\":\"ve rify\",\"s tationName \":\"stati onName\",\ "stationNu m\":\"stat ionNum\",\ "jndiName\ ":\"jndiNa me\"}"; | |
| 17 | ||
| 18 | privat e Connecto rDTO testC onnector; | |
| 19 | ||
| 20 | @B efore | |
| 21 | pu blic void setup() { | |
| 22 | test Connector = new Conn ectorDTO() ; | |
| 23 | } | |
| 24 | ||
| 25 | @T est | |
| 26 | pu blic void testIp() { | |
| 27 | test Connector. setIp(TEST _IP); | |
| 28 | St ring resul t = testCo nnector.ge tIp(); | |
| 29 | As sert.asser tEquals(TE ST_IP, res ult); | |
| 30 | } | |
| 31 | ||
| 32 | @T est | |
| 33 | pu blic void testPort() { | |
| 34 | test Connector. setPort(TE ST_PORT); | |
| 35 | Inte ger result = testCon nector.get Port(); | |
| 36 | Asse rt.assertE quals(TEST _PORT, res ult); | |
| 37 | } | |
| 38 | ||
| 39 | @T est | |
| 40 | pu blic void testAccess () { | |
| 41 | test Connector. setAccess( TEST_ACCES S); | |
| 42 | Stri ng result = testConn ector.getA ccess(); | |
| 43 | Asse rt.assertE quals(TEST _ACCESS, r esult); | |
| 44 | } | |
| 45 | ||
| 46 | @T est | |
| 47 | pu blic void testVerify () { | |
| 48 | test Connector. setVerify( TEST_VERIF Y); | |
| 49 | Stri ng result = testConn ector.getV erify(); | |
| 50 | Asse rt.assertE quals(TEST _VERIFY, r esult); | |
| 51 | } | |
| 52 | ||
| 53 | @T est | |
| 54 | pu blic void testStatio nName() { | |
| 55 | test Connector. setStation Name(TEST_ STATION_NA ME); | |
| 56 | Stri ng result = testConn ector.getS tationName (); | |
| 57 | Asse rt.assertE quals(TEST _STATION_N AME, resul t); | |
| 58 | } | |
| 59 | ||
| 60 | @T est | |
| 61 | pu blic void testStatio nNum() { | |
| 62 | test Connector. setStation Num(TEST_S TATION_NUM ); | |
| 63 | Stri ng result = testConn ector.getS tationNum( ); | |
| 64 | Asse rt.assertE quals(TEST _STATION_N UM, result ); | |
| 65 | } | |
| 66 | ||
| 67 | @T est | |
| 68 | pu blic void testJndiNa me() { | |
| 69 | test Connector. setJndiNam e(TEST_JND INAME); | |
| 70 | Stri ng result = testConn ector.getJ ndiName(); | |
| 71 | Asse rt.assertE quals(TEST _JNDINAME, result); | |
| 72 | } | |
| 73 | ||
| 74 | @T est | |
| 75 | pu blic void testToStri ng() { | |
| 76 | test Connector. setIp(TEST _IP); | |
| 77 | test Connector. setPort(TE ST_PORT); | |
| 78 | test Connector. setAccess( TEST_ACCES S); | |
| 79 | test Connector. setVerify( TEST_VERIF Y); | |
| 80 | test Connector. setStation Name(TEST_ STATION_NA ME); | |
| 81 | test Connector. setStation Num(TEST_S TATION_NUM ); | |
| 82 | test Connector. setJndiNam e(TEST_JND INAME); | |
| 83 | Stri ng result = testConn ector.toSt ring(); | |
| 84 | Asse rt.assertE quals(TEST _TOSTRING, result); | |
| 85 | } | |
| 86 | ||
| 87 | ||
| 88 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.