Ah, okay. They will have a good reason for that I guess.

On Mon, Jun 30, 2014 at 4:34 PM, Mauro Talevi <[email protected]>
wrote:

> At class level, not method level.
>
> On 30 Jun 2014, at 15:33, Hans Schwäbli <[email protected]>
> 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 <[email protected]>
> wrote:
>
>> Not sure I understand.  That's the nature of Java annotations.
>>
>> > On 30 Jun 2014, at 09:52, Hans Schwäbli <[email protected]>
>> 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
>>
>>
>>
>

Reply via email to