View Javadoc
1   /**
2    * Copyright 2005-2014 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.core.test;
17  
18  import org.junit.Test;
19  import org.junit.runner.RunWith;
20  import org.kuali.rice.core.api.lifecycle.Lifecycle;
21  import org.kuali.rice.core.framework.resourceloader.SpringResourceLoader;
22  import org.kuali.rice.test.BaselineTestCase;
23  import org.kuali.rice.test.runners.BootstrapTest;
24  import org.kuali.rice.test.runners.LoadTimeWeavableTestRunner;
25  
26  import javax.xml.namespace.QName;
27  
28  
29  /**
30   * Default test base for a full KNS enabled unit test.
31   * 
32   * @author Kuali Rice Team (rice.collab@kuali.org)
33   */
34  @BaselineTestCase.BaselineMode(BaselineTestCase.Mode.ROLLBACK_CLEAR_DB)
35  @RunWith(LoadTimeWeavableTestRunner.class)
36  @BootstrapTest(CORETestCase.BootstrapTest.class)
37  public abstract class CORETestCase extends BaselineTestCase {
38  
39      private static final String CORE_MODULE_NAME = "core";
40  
41      public CORETestCase() {
42  		super(CORE_MODULE_NAME);
43  	}
44  
45  	@Override
46  	protected Lifecycle getLoadApplicationLifecycle() {
47          SpringResourceLoader springResourceLoader = new SpringResourceLoader(new QName("CORETestResourceLoader"), "CORETestHarnessSpringBeans.xml", null);
48      	springResourceLoader.setParentSpringResourceLoader(getTestHarnessSpringResourceLoader());
49      	return springResourceLoader;
50  	}
51  
52      public static final class BootstrapTest extends CORETestCase  {
53          @Test
54          public void bootstrapTest() {};
55      }
56  
57  }