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