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

info.novatec.testit.webtester.junit5.extensions.browsers.CreateUsing Maven / Gradle / Ivy

There is a newer version: 2.10.3
Show newest version
package info.novatec.testit.webtester.junit5.extensions.browsers;

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.browser.Browser;
import info.novatec.testit.webtester.browser.BrowserFactory;
import info.novatec.testit.webtester.browser.proxy.NoProxyConfiguration;
import info.novatec.testit.webtester.browser.proxy.ProxyConfiguration;


/**
 * This annotation can be used to either declare how a {@link Managed} {@link Browser} is created or override the test's
 * global configuration (see {@link CreateBrowsersUsing}).
 * 

* A custom {@link ProxyConfiguration} can be set by providing a class reference for the {@link #proxy()} property. *

* The given {@link BrowserFactory} and {@link ProxyConfiguration} classes must have a default constructor - otherwise the * creation will fail with an exception! * * @see Managed * @see Browser * @see BrowserFactory * @see ProxyConfiguration * @see CreateBrowsersUsing * @see ManagedBrowserExtension * @since 2.1 */ @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) public @interface CreateUsing { /** * The {@link BrowserFactory} to use when creating a new {@link Browser} instance. * * @return the factory * @see Browser * @see BrowserFactory * @see Managed * @since 2.1 */ Class value(); /** * The {@link ProxyConfiguration} to use when creating a new {@link Browser} instance. Defaults to {@link * NoProxyConfiguration}. * * @return the factory * @see Browser * @see BrowserFactory * @see ProxyConfiguration * @see NoProxyConfiguration * @see Managed * @since 2.1 */ Class proxy() default NoProxyConfiguration.class; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy