Does TestNG have something like @Rule
? I am thinking specifically about:
@Rule public TemporaryFolder folder = ...
Or even
@Rule public MethodRule globalTimeout = new Timeout(20);
I am aware that I can manually implement these things using setUp()
and tearDown()
equivalents, but these don't give me the convenience that I get using @Rule
.