vertx / io.vertx.junit5 / Timeout

Timeout

@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.CLASS, AnnotationTarget.FILE]) class Timeout

Specify how long VertxTestContext#awaitCompletion(long, TimeUnit) waits before timing out.

This annotation works on both test methods and test classes.

Author
Julien Ponge

See Also
VertxTestContextorg.junit.jupiter.api.Testorg.junit.jupiter.api.extension.ExtendWith

Constructors

<init>

Timeout(value: Int, timeUnit: TimeUnit)

Specify how long VertxTestContext#awaitCompletion(long, TimeUnit) waits before timing out.

This annotation works on both test methods and test classes.

Properties

timeUnit

val timeUnit: TimeUnit

value

val value: Int