org.elasticsearch.testframework.junit.annotations.Network Maven / Gradle / Ivy
package org.elasticsearch.testframework.junit.annotations;
import com.carrotsearch.randomizedtesting.annotations.TestGroup;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Annotation used to set if internet network connectivity is required to run the test.
* By default, tests annotated with @Network won't be executed.
* Set -Dtests.network=true when running test to launch network tests
*/
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@TestGroup(enabled = false, sysProperty = "tests.network")
public @interface Network {
}