source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Common/NhincLib/test/gov/hhs/fha/nhinc/util/HomeCommunityMapTest.java@ 507

Last change on this file since 507 was 507, checked in by George Lilly, 15 years ago

NHIN gateway and adaptor for use on linux with VistA EHR and RPMS

File size: 1.5 KB
Line 
1package gov.hhs.fha.nhinc.util;
2
3import org.junit.After;
4import org.junit.AfterClass;
5import org.junit.Before;
6import org.junit.BeforeClass;
7import org.junit.Test;
8import static org.junit.Assert.*;
9
10/**
11 * This tests the HomeCommunityMap class.
12 *
13 * @author Les Westberg
14 */
15public class HomeCommunityMapTest
16{
17
18 public HomeCommunityMapTest()
19 {
20 }
21
22 @BeforeClass
23 public static void setUpClass() throws Exception
24 {
25 }
26
27 @AfterClass
28 public static void tearDownClass() throws Exception
29 {
30 }
31
32 @Before
33 public void setUp()
34 {
35 }
36
37 @After
38 public void tearDown()
39 {
40 }
41
42 /**
43 * Test of getHomeCommunityName method, of class HomeCommunityMap.
44 */
45 @Test
46 public void testGetHomeCommunityName()
47 {
48 System.out.println("getHomeCommunityName");
49
50 // The values here are completely dependent on values in UDDI that we are not
51 // in charge of. We should not have our unit test fail for that reason. It is commented
52 // out but can be uncommented for debugging...
53 //----------------------------------------------------------------------------------------
54
55// HomeCommunityMap oHomeCommunityMap = new HomeCommunityMap();
56// String sResult = oHomeCommunityMap.getHomeCommunityName("2.16.840.1.113883.3.200");
57// assertEquals("Federal Agency - VA", sResult);
58//
59// sResult = oHomeCommunityMap.getHomeCommunityName("2.16.840.1.113883.13.25");
60// assertEquals("Bloomington Hospital", sResult);
61 }
62}
Note: See TracBrowser for help on using the repository browser.