View Javadoc

1   /*
2    * Copyright 2007-2009 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  package org.kuali.rice.kim.test.service.remote;
17  
18  import java.util.List;
19  
20  import org.kuali.rice.core.lifecycle.Lifecycle;
21  import org.kuali.rice.kim.service.IdentityService;
22  import org.kuali.rice.kim.test.service.IdentityServiceTest;
23  import org.kuali.rice.kim.test.service.ServiceTestUtils;
24  import org.kuali.rice.kim.util.KIMWebServiceConstants;
25  
26  /**
27   * Test the RoleService via remote calls
28   * 
29   * @author Kuali Rice Team (rice.collab@kuali.org)
30   *
31   */
32  public class IdentityServiceRemoteTest extends IdentityServiceTest {
33  
34  	public void setUp() throws Exception {
35  		super.setUp();
36  	}
37  
38  	@Override
39  	protected List<Lifecycle> getPerTestLifecycles() {
40  		List<Lifecycle> lifecycles = super.getPerTestLifecycles();
41  		lifecycles.add(getJettyServerLifecycle());
42  		return lifecycles;
43  	}
44  	
45  	@Override
46  	protected IdentityService findIdSvc() throws Exception {
47  		return (IdentityService) ServiceTestUtils.getRemoteServiceProxy(KIMWebServiceConstants.MODULE_TARGET_NAMESPACE, KIMWebServiceConstants.IdentityService.WEB_SERVICE_NAME, KIMWebServiceConstants.IdentityService.INTERFACE_CLASS);
48  	}
49  }