001 /** 002 * Copyright 2005-2011 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.test; 017 018 import java.lang.annotation.Documented; 019 import java.lang.annotation.ElementType; 020 import java.lang.annotation.Inherited; 021 import java.lang.annotation.Retention; 022 import java.lang.annotation.RetentionPolicy; 023 import java.lang.annotation.Target; 024 025 /** 026 * Annotation for triggering the loading of a test data dictionary instance 027 * 028 * <p> 029 * When enabled on a @{link KRADTestCase} a data dictionary instance will be created and populated with the 030 * files listed in the 'testDataDictionary' bean. Additional files for the test can be given by configuring 031 * the annotation property dataDictionaryFiles 032 * </p> 033 * 034 * @author Kuali Rice Team (rice.collab@kuali.org) 035 */ 036 @Documented 037 @Target({ElementType.TYPE}) 038 @Retention(RetentionPolicy.RUNTIME) 039 @Inherited 040 public @interface TestDictionaryConfig { 041 // namespace the dictionary beans should be associated with 042 String namespaceCode(); 043 044 // list of dictionary files (separated by a comma) that will be loaded in the test dictionary 045 String dataDictionaryFiles() default ""; 046 }