1 /** 2 * Copyright 2005-2011 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.ken.dao; 17 18 import org.kuali.rice.core.framework.persistence.dao.GenericDao; 19 import org.kuali.rice.ken.test.KENTestCase; 20 import org.kuali.rice.test.BaselineTestCase; 21 import org.kuali.rice.test.BaselineTestCase.BaselineMode; 22 import org.kuali.rice.test.BaselineTestCase.Mode; 23 24 /** 25 * Convenience test case implementation that just stores the BusinessObjectDao bean 26 * in a protected member field for ease of use 27 * @author Kuali Rice Team (rice.collab@kuali.org) 28 */ 29 @BaselineTestCase.BaselineMode(Mode.CLEAR_DB) 30 public abstract class BusinessObjectDaoTestCaseBase extends KENTestCase { 31 protected GenericDao businessObjectDao; 32 33 /** 34 * @see org.kuali.rice.test.BaselineTestCase#setUp() 35 */ 36 @Override 37 public void setUp() throws Exception { 38 super.setUp(); 39 businessObjectDao = services.getGenericDao(); 40 } 41 }