Package de.tum.in.test.api.internal
Class TimeoutUtils
java.lang.Object
de.tum.in.test.api.internal.TimeoutUtils
public final class TimeoutUtils
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description static java.util.Optional<java.time.Duration>findTimeout(TestContext context)static <T> TperformTimeoutExecution(org.junit.jupiter.api.function.ThrowingSupplier<T> execution, TestContext context)
-
Method Details
-
findTimeout
-
performTimeoutExecution
public static <T> T performTimeoutExecution(org.junit.jupiter.api.function.ThrowingSupplier<T> execution, TestContext context) throws java.lang.Throwable- Throws:
java.lang.Throwable
-