Are there any best practices to get Junit execute a function once in a test file , and it should also not be static.
like @BeforeClass on non static fun
@BeforeClass
I've never tried but maybe you can create a no-argument constructor and call you function from there?