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

info.novatec.testit.webtester.junit.annotations.ConfigurationValue Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
package info.novatec.testit.webtester.junit.annotations;

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

import info.novatec.testit.webtester.api.browser.Browser;
import info.novatec.testit.webtester.api.config.Configuration;
import info.novatec.testit.webtester.junit.runner.WebTesterJUnitRunner;


/**
 * This annotation can be used to annotate fields in order to mark them for
 * configuration property injection by the {@link WebTesterJUnitRunner}. The
 * annotated fields will be resolved against the current {@link Primary primary}
 * {@link Browser browser's} {@link Configuration configuration} using the
 * annotations {@link #value() key}.
 * 

* The following field types are currently supported for injection: *

    *
  • String
  • *
  • Integer
  • *
  • Long
  • *
  • Float
  • *
  • Double
  • *
  • Boolean
  • *
* * @see WebTesterJUnitRunner * @see Primary * @see Browser * @see Configuration * @since 0.9.7 changed source of configuration */ @Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.FIELD }) public @interface ConfigurationValue { /** * The key of the {@link Configuration configuration's} property to inject. * * @return the key * @since 0.9.1 */ String value(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy