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 | |
---|
1 | package gov.hhs.fha.nhinc.subscription.repository.service.test;
|
---|
2 |
|
---|
3 | import gov.hhs.fha.nhinc.subscription.repository.service.SubscriptionRepositoryFactory;
|
---|
4 | import gov.hhs.fha.nhinc.subscription.repository.service.SubscriptionRepositoryService;
|
---|
5 | import gov.hhs.fha.nhinc.subscription.repository.SubscriptionRepositoryException;
|
---|
6 | import org.junit.Test;
|
---|
7 | import static org.junit.Assert.*;
|
---|
8 |
|
---|
9 | /**
|
---|
10 | * Unit tests for the SubscriptionRepositoryFactory class.
|
---|
11 | *
|
---|
12 | * @author Neil Webb
|
---|
13 | */
|
---|
14 | public class SubscriptionRepositoryFactoryTest
|
---|
15 | {
|
---|
16 | /**
|
---|
17 | * Test the creation of a concrete subscription repository service
|
---|
18 | */
|
---|
19 | @Test
|
---|
20 | public void testSubscriptionFactory()
|
---|
21 | {
|
---|
22 | System.out.println("Begin testSubscriptionFactory");
|
---|
23 | try
|
---|
24 | {
|
---|
25 | SubscriptionRepositoryService repositoryService = new SubscriptionRepositoryFactory().getSubscriptionRepositoryService();
|
---|
26 | assertNotNull("Subscription service was null", repositoryService);
|
---|
27 |
|
---|
28 | String serviceClassName = repositoryService.getClass().getName();
|
---|
29 | System.out.println("Subscription repository class name: " + serviceClassName);
|
---|
30 | assertEquals("Impl class name", "gov.hhs.fha.nhinc.subscription.repository.service.FileSubscriptionRepository", serviceClassName);
|
---|
31 | }
|
---|
32 | catch (SubscriptionRepositoryException ex)
|
---|
33 | {
|
---|
34 | ex.printStackTrace();
|
---|
35 | fail(ex.getMessage());
|
---|
36 | }
|
---|
37 | System.out.println("End testSubscriptionFactory");
|
---|
38 | }
|
---|
39 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.