PoisonedYouth
01/23/2024, 8:41 AMKonsist.scopeFromProject()
.classes()
.primaryConstructors
.parameters
.assertTrue {
// it.type == Interface
}
The usecase for this is to check that the components that are injected are always the abstractions and never concrete implementations.PoisonedYouth
01/24/2024, 6:55 AMKonsist.scopeFromProject()
.classes()
.primaryConstructors
.parameters
.assertTrue { Class.forName(it.type.fullyQualifiedName).isInterface
}
Tim Malseed
03/06/2024, 11:30 AMClassNotFoundException
Natalia Peterwas
03/06/2024, 1:32 PM