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> T performTimeoutExecution​(org.junit.jupiter.api.function.ThrowingSupplier<T> execution, TestContext context)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • findTimeout

      public static java.util.Optional<java.time.Duration> findTimeout​(TestContext context)
    • performTimeoutExecution

      public static <T> T performTimeoutExecution​(org.junit.jupiter.api.function.ThrowingSupplier<T> execution, TestContext context) throws java.lang.Throwable
      Throws:
      java.lang.Throwable