[Junitdoclet-users] how to get tests for implementations in abstract classes?
Brought to you by:
sgemkow
From: Thomas L R. <tl...@us...> - 2003-01-14 00:45:55
|
Can JUnitDoclet (JUD) be made to generate tests for methods in abstract classes? What I mean: I have code resembling the following: abstract class Foo { void implementedMethod() { /* ... */ } // has implementation abstract void abstractMethod(); // doesn't } class FooBar extends Foo { void abstractMethod() { /* ... */ } // implements Foo.abstractMethod } class FooBaz extends Foo { void abstractMethod() { /* ... */ } // implements Foo.abstractMethod } I run JUD, and I get class FooBarTest { void testAbstractMethod() { /* ... */ } } class FooBazTest { void testAbstractMethod() { /* ... */ } } but I don't get a testImplementedMethod() in any of FooTest, FooBarTest, or FooBazTest. Is this a bug? or can JUD be made to generate test stubs for methods implemented in abstract classes? Apologies if this is a FAQ, but I didn't see it at http://www.junitdoclet.org/faq.html |