Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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?