2021-01-16 17:11:29 +01:00
|
|
|
package org.schabi.newpipe;
|
|
|
|
|
|
|
|
import java.lang.annotation.ElementType;
|
|
|
|
import java.lang.annotation.Inherited;
|
|
|
|
import java.lang.annotation.Retention;
|
|
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
import java.lang.annotation.Target;
|
|
|
|
|
2021-02-19 18:53:33 +01:00
|
|
|
import javax.annotation.Nonnull;
|
|
|
|
|
2021-01-16 17:11:29 +01:00
|
|
|
/**
|
2021-02-26 17:47:22 +01:00
|
|
|
* Marker annotation to skip test in certain cases.
|
2021-01-16 17:11:29 +01:00
|
|
|
*
|
|
|
|
* {@link MockOnlyRule}
|
|
|
|
*/
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Target({ElementType.METHOD, ElementType.TYPE})
|
|
|
|
@Inherited
|
|
|
|
public @interface MockOnly {
|
2021-02-19 18:53:33 +01:00
|
|
|
|
|
|
|
/**
|
2021-02-26 17:47:22 +01:00
|
|
|
* Explanation why this test should be skipped
|
2021-02-19 18:53:33 +01:00
|
|
|
*/
|
|
|
|
@Nonnull String reason();
|
2021-01-16 17:11:29 +01:00
|
|
|
}
|