beforeTestsStarted() was deprecated recently.

See following comment at beforeTestsStarted():
* @deprecated This method is deprecated. Instead of invoking or overriding
it, it is recommended to make your own
* method with {@code @BeforeClass} annotation.

But, according to Junit documentation:
* Annotating a public static void no-arg method with @BeforeClass causes it
to be run once before any of the test methods in the class.

So, the method should be *static* to be annotated with @BeforeClass.
And I see a problem here since you're not able to use non-static methods
like GridAbstractTest#startGrid() at method annotated with @BeforeClass.

So, what is the real replacement?

Reply via email to