Sorry for being so verbose, I'll try to explain in words.
So, the scenario is:
I have a @Factory that creates two instances of the same test.
The test has an @BeforeClass, an @AfterClass and an @BeforeMethod.
At runtine, I would expect the following sequence of methods to be
executed twice:
beforeClass
beforeMethod
beforeMethod
....beforeMethod....
afterClass
beforeClass
beforeMethod
beforeMethod
....beforeMethod....
afterClass
Now my issue is that the sequence is as follows:
beforeClass
beforeMethod
beforeMethod
....beforeMethod....
afterClass
beforeClass
beforeMethod
beforeMethod
afterClass //
<---------------------------------------------------------- so
afterClass gets executed twice for the same test instance (3 times
overall)
....beforeMethod....
afterClass
hope I've been more concise
(You can use the attached code to reproduce the issue.)
Cheers,
Mircea
> ***Cédric
> *