Annotation Type Timeout
-
@Retention(RUNTIME) @Target({METHOD,TYPE}) @Inherited public @interface Timeout
Maximum execution time for a single test method. Test methods are defined as any instance-scopeTestRule
s,Before
andAfter
hooks andTest
methods. Suite class's constructor is not part of the measured code (seeTimeoutSuite
).Overrides a global default
RandomizedRunner.DEFAULT_TIMEOUT
or a system property overrideSysGlobals.SYSPROP_TIMEOUT
.- See Also:
TimeoutSuite
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description int
millis
Timeout time in millis.
-