View Javadoc

1   package org.kuali.rice.shareddata.impl;
2   
3   import org.junit.After;
4   import org.junit.Before;
5   import org.kuali.rice.shareddata.api.country.CountryService;
6   import org.kuali.rice.shareddata.impl.country.CountryServiceImplTest;
7   import org.kuali.rice.test.remote.RemoteTestHarness;
8   
9   public class CountryServiceRemoteTest extends CountryServiceImplTest {
10  
11      RemoteTestHarness harness = new RemoteTestHarness();
12  
13      @Before
14      @Override
15      public void setupServiceUnderTest() {
16          super.setupServiceUnderTest();
17          CountryService remoteProxy =
18                  harness.publishEndpointAndReturnProxy(CountryService.class, this.getCountryServiceImpl());
19          super.setCountryService(remoteProxy);
20      }
21  
22      @After
23      public void unPublishEndpoint() {
24          harness.stopEndpoint();
25      }
26  }