From: Rajarshi G. <rg...@in...> - 2008-10-19 19:47:21
|
On Oct 19, 2008, at 3:16 PM, Egon Willighagen wrote: > On Sun, Oct 19, 2008 at 9:10 PM, Rajarshi Guha <rg...@in...> > wrote: >> >> BTW, I think it's important that coverage tests be converted to >> CoverageAnnotationTest - this is because the latter will identify >> whether >> methods of a class not explicitly marked as tested, are actually >> tested in a >> superclass. > > Which means that if I subclass a class and overwrite a method, I do > not have to 'overwrite' the test annotation too? Yes (I think). Basaically given a super class: class Atest { public void someCommonMethod() } class Btest extends Atest { public void someOtherMethod() } @TestClass("Btest") class MyClass { @TestMethd("someCommonMethod") public void someCommonMethod() { ... } ... } So even though someCommonMethod is not tested specifically in Btest, the coverge annotation test knows to look in the super class of Btest for that specific test method Is this what you meant? ------------------------------------------------------------------- Rajarshi Guha <rg...@in...> GPG Fingerprint: D070 5427 CC5B 7938 929C DD13 66A1 922C 51E7 9E84 ------------------------------------------------------------------- A motion to adjourn is always in order. |