Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is @DataProvider annotation runs before @BeforeClass in TestNG?

Tags:

java

testng

Using TestNG, why does the @DataProvider run before @BeforeClass?

It seems that sometimes @DataProvider runs before @BeforeClass and some times not?

Anybody knowing the reason?

like image 508
susantjs Avatar asked Sep 23 '10 06:09

susantjs


1 Answers

It's just the way it's implemented today, is this a problem for you?

like image 85
Cedric Beust Avatar answered Oct 20 '22 00:10

Cedric Beust