Declaration Assertion
Verify codebase using Konsist API
Assertion Methods
Assert True
koScope
.interfaces()
.assertTrue { it.hasPublicModifier() }Assert False
Konist
.scopeFromProject()
.properties()
.assertFalse {
it.hasAnnotationOf(Inject::class)
}Assert Empty
Assert Not Empty
Assertion Parameters
Test Name
Strict
Additional Message
Last updated