Stay organized with collections Save and categorize content based on your preferences.


public abstract @interface BeforeClassWithInfo
implements Annotation

Similar guarantees as BeforeClass but method annotated must require a TestInformation parameter. Runs BEFORE beforeClass methods.

Using TestInformation#properties() can help passing information between static & non-static context.


@BeforeClassWithInfo public static void beforeClassWithInfo(TestInformation testInfo) { assertNotNull(device); }

See also: