Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am arazabishov on github.
  • I am arazabishov (https://keybase.io/arazabishov) on keybase.
  • I have a public key ASAIi1cUH8tVzVgsF2m41HVXeJmq5bn-X6C9OJwymz23rwo

To claim this, I am signing this object:

@arazabishov
arazabishov / CaptureScreenshots.java
Last active June 23, 2018 00:02
A JUnit Rule for capturing screenshots using Spoon
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Target(METHOD)
@Retention(RUNTIME)
public @interface CaptureScreenshots {
String before() default "";