View Javadoc
1   /*
2    * Copyright 2006-2012 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.kuali.rice.kim.impl.role;
18  
19  import org.junit.After;
20  import org.junit.Before;
21  import org.kuali.rice.kim.api.role.RoleService;
22  import org.kuali.rice.kim.api.type.KimTypeInfoService;
23  import org.kuali.rice.kim.impl.group.GroupServiceImplTest;
24  import org.kuali.rice.test.remote.RemoteTestHarness;
25  
26  /**
27   * Test for RoleService which invokes RoleService remotely over the bus
28   */
29  public class RoleServiceRemoteTest extends RoleServiceImplTest {
30      RemoteTestHarness harness = new RemoteTestHarness();
31  
32      @Before
33      @Override
34      public void setupServiceUnderTest() {
35          super.setupServiceUnderTest();
36          RoleService remoteProxy = harness.publishEndpointAndReturnProxy(RoleService.class, this.getRoleServiceImpl());
37          super.setRoleService(remoteProxy);
38      }
39  
40      @After
41      public void unPublishEndpoint() {
42          harness.stopEndpoint();
43      }
44  }