001/** 002 * Copyright 2005-2014 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 */ 016package org.kuali.rice.kns; 017 018import org.junit.Test; 019import org.junit.runner.RunWith; 020import org.kuali.rice.core.api.lifecycle.Lifecycle; 021import org.kuali.rice.core.framework.resourceloader.SpringResourceLoader; 022import org.kuali.rice.krad.test.KRADTestCase; 023import org.kuali.rice.test.BaselineTestCase; 024import org.kuali.rice.test.runners.BootstrapTest; 025import org.kuali.rice.test.runners.LoadTimeWeavableTestRunner; 026 027import javax.xml.namespace.QName; 028import java.util.ArrayList; 029import java.util.List; 030 031/** 032 * Test base class for legacy KNS Tests 033 * 034 * @author Kuali Rice Team (rice.collab@kuali.org) 035 * 036 * @deprecated KNS test class, convert to KRAD equivalent if applicable. 037 */ 038@Deprecated 039@BaselineTestCase.BaselineMode(BaselineTestCase.Mode.ROLLBACK_CLEAR_DB) 040@RunWith(LoadTimeWeavableTestRunner.class) 041@BootstrapTest(KNSTestCase.BootstrapTest.class) 042public class KNSTestCase extends KRADTestCase { 043 044 @Override 045 protected Lifecycle getLoadApplicationLifecycle() { 046 List<String> resourceLocations = new ArrayList<String>(); 047 resourceLocations.add("classpath:KRADTestHarnessSpringBeans.xml"); 048 resourceLocations.add("classpath:KNSTestSpringBeans.xml"); 049 050 SpringResourceLoader springResourceLoader = new SpringResourceLoader(new QName("KRADTestResourceLoader"), 051 resourceLocations, null); 052 springResourceLoader.setParentSpringResourceLoader(getTestHarnessSpringResourceLoader()); 053 054 return springResourceLoader; 055 } 056 057 public static final class BootstrapTest extends KNSTestCase { 058 @Test 059 public void bootstrapTest() {}; 060 } 061}