Introduction
The @BeforeAll method runs once before all tests. It helps set up things needed for every test, saving time and avoiding repetition.
When you need to open a database connection once before all tests run.
When you want to initialize shared test data or configuration.
When you want to start a server or service once before running tests.
When you want to load a file or resource only once for all tests.