RE: [Junitdoclet-users] Re: JUnit 3.8.1
Brought to you by:
sgemkow
From: <ste...@ob...> - 2002-12-12 10:21:28
|
On 10 Dec 2002 at 15:22, Matt Raible wrote: > I have no specific reason for wanting 3.8.1 - I just saw a message > yesterday (can't seem to find it now) that some syntax had changed in > 3.8.1 and tests were easier to write now. Just wondering so I could > answer this question if it ever does come up. I'm writing a sample app > that demonstrates using Xdoclet, Struts, JUnitDoclet, Cactus and other > tools to build a webapp and test it. I guess you are refering to the standard constructor. Since JUnit 3.8.1 you don't need to pass a name to the constructor. Java allows a class without explicit declared constructor if the superclass has a constructor without parameters. So you could skip writing a constructor in a TestCase _if_you_are_ _using_JUnit_3.8.1_only_. Please see JUnit docs for details. But the "old fashioned" constructors are working fine too. JUnitDoclet does generate constructors in that way, so TestCases can be used with JUnit versions prior to 3.8.1. I believe 3.7 is used quite often. Regards, Steffen Gemkow -- ObjectFab GmbH ste...@ob... |