Skip to content

Inheritance of Categories #558

Closed
Closed
@gaffa

Description

@gaffa

I need to Annotate all our IntegrationTests. As I realized they all inherit from only like 3 different abstract tests I felt like maybe I am ready already because I simply can annotate the abstract class. Just that this behaviour is not as expected.

Example:

@category(IT.class)
public class A{
@test
public void testInAnnotatedClass() {
System.out.println("inheritance: method in annotated class ran.");
}
}

public class B extends A{
@test
public void testInInheritingClass() {
System.out.println("inheritance: method in inheriting class ran.");
}
}

Running this will result in only testInAnnotatedClass() being ran.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions