It is dependant on the framework which you invoke to run the test cases. If you run with JUNIT , then the JUNIT annotations will be read and the TestNG annotations will be skipped. Same scenario is with TestNG. The TestNG does not understand the JUNIT annotations.
Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
Just the other day, I was thinking ... about this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss