NewPipeExtractor/extractor/src/test/java/org/schabi/newpipe/MockOnly.java

25 lines
574 B
Java
Raw Normal View History

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;
import javax.annotation.Nonnull;
/**
2021-02-26 17:47:22 +01:00
* Marker annotation to skip test in certain cases.
*
* {@link MockOnlyRule}
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
@Inherited
public @interface MockOnly {
/**
2021-02-26 17:47:22 +01:00
* Explanation why this test should be skipped
*/
@Nonnull String reason();
}