Setting up @Tested object in a @BeforeMethod #461
Please provide the following information:
It seems that the availableDuringSetup parameter of the @Tested annotation constructs the annotated object only once for all unit tests in the class. Hopefully this example will show quickly what I mean:
Output for availableDuringSetup = true :
Is that intentional? And if so, then is there some other way to force the reconstruction of the @Tested object before each execution of the @BeforeMethod?