Junit before class ( non static )
- by Roman
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 function?
Here is an ugly solution :
@Before void init(){
if (init.get() == false){
init.set(true);
// do once block
}
}
well this is something i dont want to do , and i am looking for an integrated junit solution.