I have recently starred using
jUnit to write
test cases. While, googling for tutorials, i came across two approaches to write test cases:
> Using Annotations (@Test)
> Extending TestCase class
However, i never could find the possible differences between them, and what i should be using in my code. I know, extending TestCase class is not a suitable option, since i cant extend anyother class if i do this. Can anyone provide me with more differences, preferably the scenarios where i should use particular implementation.