001 /** 002 * Copyright 2005-2013 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.rice.ken; 017 018 import org.junit.Test; 019 import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader; 020 import org.kuali.rice.ken.api.KenApiConstants; 021 import org.kuali.rice.ken.api.service.SendNotificationService; 022 import org.kuali.rice.ken.test.KENTestCase; 023 import org.kuali.rice.kim.api.identity.IdentityService; 024 import org.kuali.rice.kim.api.services.KimApiServiceLocator; 025 import org.kuali.rice.test.BaselineTestCase.BaselineMode; 026 import org.kuali.rice.test.BaselineTestCase.Mode; 027 028 import javax.xml.namespace.QName; 029 030 import static org.junit.Assert.assertNotNull; 031 032 033 /** 034 * Tests integration with KEW 035 * @author Kuali Rice Team (rice.collab@kuali.org) 036 */ 037 @BaselineMode(Mode.ROLLBACK_CLEAR_DB) 038 public class KEWIntegrationTest extends KENTestCase { 039 040 @Test 041 public void testKEWServicesAreAccessible() throws Exception { 042 043 IdentityService identityService = KimApiServiceLocator.getIdentityService(); 044 assertNotNull(identityService); 045 LOG.info("Default KIM IdentityManagementService: " + identityService); 046 047 SendNotificationService notification = (SendNotificationService) GlobalResourceLoader.getService(new QName( 048 KenApiConstants.Namespaces.KEN_NAMESPACE_2_0, "sendNotificationService")); 049 assertNotNull(notification); 050 // XmlIngesterService is = SpringServiceLocator..getXmlIngesterService(); 051 // check that the quickstart user is present 052 //assertNotNull(userService.getWorkflowUser(new WorkflowUserId("quickstart"))); 053 } 054 }