At class level, not method level.
> On 30 Jun 2014, at 15:33, Hans Schwäbli <bugs.need.love....@gmail.com> wrote: > > I thought there is a way to make annotations to be inherited by subclasses. > > But I don't know and thats a bit off-topic currently. Maybe I dig later > deepter in that issue. > > >> On Mon, Jun 30, 2014 at 1:23 PM, Mauro Talevi <mauro.tal...@aquilonia.org> >> wrote: >> Not sure I understand. That's the nature of Java annotations. >> >> > On 30 Jun 2014, at 09:52, Hans Schwäbli <bugs.need.love....@gmail.com> >> > wrote: >> > >> > I have subclassed WebDriverScreenshotOnFailure and overridden >> > afterScenarioFailure(UUIDExceptionWrapper). >> > >> > I wondered why my class never was used. Then I discovered that I have to >> > add the same annotation in the overriden method like it is in the >> > superclass: >> > >> > @AfterScenario(uponOutcome = Outcome.FAILURE) >> > >> > Do you intend not to "inherit" this annotation to sub classes when >> > afterScenarioFailure(UUIDExceptionWrapper) is overridden? >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >