Skip to content

Instantly share code, notes, and snippets.

View IsmagilovQA's full-sized avatar

Vitaliy IsmagilovQA

  • Brightgrove LTD
  • Kharkiv, Ukraine
View GitHub Profile
@IsmagilovQA
IsmagilovQA / SystemSetupExtension
Last active January 5, 2022 14:54 — forked from Legionivo/SystemSetupExtension
Custom Extension which executes code only once before all tests are started and after all tests finished
/**
* Custom Extension which executes code only once before all tests are started and after all tests finished.
* This is temporary solution until https://github.com/junit-team/junit5/issues/456 will not be released
*/
public class SystemSetupExtension implements BeforeAllCallback, ExtensionContext.Store.CloseableResource {
private static boolean systemReady = false;
/**