001/* 002 * Copyright 2005-2014 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 017package org.kuali.rice.test.runners; 018 019import java.lang.annotation.Retention; 020import java.lang.annotation.Target; 021 022import static java.lang.annotation.ElementType.TYPE; 023import static java.lang.annotation.RetentionPolicy.RUNTIME; 024 025/** 026 * Defines a test class which should be loaded and run at the start of a suite of tests. 027 * 028 * <p>This annotation should be applied to a class which uses the {@link LoadTimeWeavableTestRunner} which will load 029 * and execute the specified bootstrap test.</p> 030 * 031 * <p>Usually, this is used for one-time initialization for the test suite. It also helps to get around issues of eager 032 * classloading of JPA entities before their ClassFileTransformers can be registered for load-time weaving.</p> 033 * 034 * <p>The test class referenced must have at least one {@link org.junit.Test}</p> method even if it doesn't actually 035 * do anything.</p> 036 */ 037@Target(TYPE) 038@Retention(RUNTIME) 039public @interface BootstrapTest { 040 041 Class<?> value(); 042 043}