All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.testing.junit5.envers.RequiresAuditStrategy Maven / Gradle / Ivy

/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.testing.junit5.envers;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import org.hibernate.envers.strategy.AuditStrategy;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Annotation used to indicate that a test should be run only for specific audit strategies.
 *
 * @author Chris Cranford
 * @since 6.0
 */
@Retention(RUNTIME)
@Target({ METHOD, TYPE })
public @interface RequiresAuditStrategy {
	/**
	 * The strategies against which to run the test
	 *
	 * @return The strategies
	 */
	Class[] value();

	/**
	 * Comment describing the reason why the audit strategy is required.
	 *
	 * @return The comment
	 */
	String comment() default "";

	/**
	 * The key of a JIRA issue which relates to this restriction.
	 *
	 * @return The jira issue key.
	 */
	String jiraKey() default "";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy