views:

52

answers:

1

When I right click a project in NetBeans and choose Test, certain unit tests aren't running. If I right click the .java file that contains the unit tests and choose Test File, the unit tests do run. Also I have this project in Hudson CI and those same unit tests don't get run.

A: 
Liron Yahdav
Seems to me its because your tests should be specific to each class. The JUnit approach to testing is that each application class has a corresponding class to test it. Which is the behaviour you're seeing.
MadMurf
After further research, it actually doesn't matter that each class have a corresponding test class. See my edit in the answer for an explanation.
Liron Yahdav