Yonatan Karp-Rudin
10/10/2023, 9:36 AMhasAnyAnnotationsOf() for this test example:
Konsist
.scopeFromProject()
.classes()
.properties()
.assertFalse { it.hasAnyAnnotationsOf(Autowired::class, Inject::class) }
The main reason here is that spring supports both the @Autowired and @Inject annotation for DI.igor.wojda
10/10/2023, 10:53 AMhasAnnotationOf - works like Any - "Determines whether the declaration has at least one annotation of the specified KClass type"Yonatan Karp-Rudin
10/12/2023, 8:22 PMigor.wojda
10/13/2023, 12:21 AMs may be also confusing