||Using JUnit With Eclipse IDE|
|Subject:||junit naming conventions|
This article is in contrast to what I have normally seen for junit naming conventions. Generally the class name for a unit test is the name of the java class with Test before or after. So if the class under test is HelloWorld, the test case class would be HelloWorldTest (or TestHelloWorld if you prefered). Then the methods inside that class HelloWorldTest could be testThatWeGetHelloWorldPrompt. If our Hello World program took an argument, then we might also have a testNullWorld method to test that a null argument is handled properly.
Hear us Roar