iis icon indicating copy to clipboard operation
iis copied to clipboard

Check if @BeforeEach annotation is properly defined in TestWithSharedSparkSession and sub-classes

Open marekhorst opened this issue 3 years ago • 0 comments

Originally reported by @mpol in https://github.com/openaire/iis/pull/1361#discussion_r909599096.

I guess it might be some leftover when the IIS test code base was switched from junit4 to junit5 as it seems the @BeforeEach default behavior has changed.

Nevertheless we should take a closer look and check if this "double indication" (by annotation in both super and sub classes and referencing with super()) in a sub-class method) of methods to be called before each test is really required.

marekhorst avatar Jun 29 '22 16:06 marekhorst