Assertion: assertTimeout()

The assertTimeout() method

The assertTimeout() method asserts that execution of the given Executable completes before the given timeout. The timeout value is specified as a java.time.Duration object.

Get hands-on with 1200+ tech skills courses.