I planning to use
JUnit 3.x plugin in Eclipse 3.1 for white box
testing.
Are there some guidelines to be followed while writing JUnit tests?
I came across
this. But the article seems pretty old. Is it pertinent even today?
Is JUnit 4.x way more better than JUnit3.x?What are the pros and cons? I think JUnit 4.x doesn't give a GUI based output in Eclipse.
I have read about @BeforeClass and @AfterClass annotations.Is there an equivalent mechanism in JUnit 3.x.
And I couldn't figure out how am I going to test for expected output when I am working on a database system?