Closed
Description
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
Labels
No labels