package org.jmock.junit5.extensions; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.junit.jupiter.api.Test; @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @Test public @interface ExpectationThrows { /** * Optionally specify expected, a Throwable, to cause a test method * to succeed if and only if an exception of the specified class is thrown by * the method. */ Class expected(); }