This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I've not seen JUnit done with annotations. The traditional convention is that you make a class that parallels the class name to be tested and name it "classnameTest", using the original class name as the value of "classname" and making it a subclass of a JUnit base class. Then Eclipse can run it via a right-click menu option.
An IDE is no substitute for an Intelligent Developer.
Joined: Feb 08, 2004
pardon my ignorance, pls @ Jeanne Boyarsky why do you consider that code an unit test? because of the @test anotation?? ty
author & internet detective