1) My IDE (eclipse) isn't prompting me to run this class as a test.... I'm wondering why ? I've also played with putting
annotations above the methods.
2) In general, if I'm not extending TestCase (due to multiple inheritance prevention), what is the convential way to
make a class Unit Testable ?
jay vas wrote:Eclipse typically offers Run As > JUnit in helios and galileo..... (see image).....
Right. In Helios, I can run JUnit 4 style tests that way. I don't remember what version of JUnit was built into Galileo.
jay vas wrote:So I guess I'm confused about how / why extension of TestCase is ever necessary.... Is this just an artifact of old JUnit ?
In JUnit 4, you can write tests in the old style or new style. Sometimes, one is using a library that forces extending in the 3.8 style so they kept it as an option.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.