ch.inftec.ju.testing.db.JuTestEnv Maven / Gradle / Ivy
package ch.inftec.ju.testing.db;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Helper annotation to define environmental variables for tests.
* @author Martin Meyer
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
public @interface JuTestEnv {
/**
* Sets system properties for the test run context.
*
* System properties must be defined using Strings of the form key=value
. They will
* override any system properties for the test context and then be reset to their original value at
* the end of the test.
* @return Array of system property settings
*/
public String[] systemProperties();
}