I want to check that if a class has a specific annotation (e.g. MyAnnotation), then it should implement a specific interface (e.g. MyInterface).
Example:
public class GoodImpl : MyInterface
{
[MyAnnotation]
private bool foo;
}
public class BadImpl /* issue: does not implement MyInterface */
{
[MyAnnotation]
private bool bar;
}
However, I did not find any methods for annotations.
Did I look in the wrong place or is this not supported?
I want to check that if a class has a specific annotation (e.g. MyAnnotation), then it should implement a specific interface (e.g. MyInterface).
Example:
However, I did not find any methods for annotations. Did I look in the wrong place or is this not supported?
Thank you for this great port of ArchUnit ❤️ !