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
The article discuss 2 very nice solutions for this problem: