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.dao; 017 018 import org.kuali.rice.core.framework.persistence.dao.GenericDao; 019 import org.kuali.rice.ken.test.KENTestCase; 020 import org.kuali.rice.test.BaselineTestCase; 021 import org.kuali.rice.test.BaselineTestCase.BaselineMode; 022 import org.kuali.rice.test.BaselineTestCase.Mode; 023 024 /** 025 * Convenience test case implementation that just stores the BusinessObjectDao bean 026 * in a protected member field for ease of use 027 * @author Kuali Rice Team (rice.collab@kuali.org) 028 */ 029 @BaselineTestCase.BaselineMode(Mode.CLEAR_DB) 030 public abstract class BusinessObjectDaoTestCaseBase extends KENTestCase { 031 protected GenericDao businessObjectDao; 032 033 /** 034 * @see org.kuali.rice.test.BaselineTestCase#setUp() 035 */ 036 @Override 037 public void setUp() throws Exception { 038 super.setUp(); 039 businessObjectDao = services.getGenericDao(); 040 } 041 }