Debian Codegraph @

jmock-junit5/src/test/java/org/jmock/junit5/extensions/ExpectationThrows.java

raw
1 package org.jmock.junit5.extensions;
2
3 import java.lang.annotation.ElementType;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
6 import java.lang.annotation.Target;
7
8 import org.junit.jupiter.api.Test;
9
10 @Target(ElementType.METHOD)
11 @Retention(RetentionPolicy.RUNTIME)
12 @Test
13 public @interface ExpectationThrows {
14
15 /**
16 * Optionally specify <code>expected</code>, a Throwable, to cause a test method
17 * to succeed if and only if an exception of the specified class is thrown by
18 * the method.
19 */
20 Class<? extends Throwable> expected();
21 }