Swapnil Musale
09/06/2023, 6:50 AM@Test
fun `classes under 'model' package should be data class`() {
Konsist
.scopeFromModule("data")
.classes()
.withPackage("model")
.assert {
it.hasDataModifier
}
}
After running this test getting Declaration list is empty. Please make sure that list of declarations contain items before calling the 'assert' method.
this error. Where as there are 2 classes are available inside model package.igor.wojda
09/06/2023, 8:54 AMSwapnil Musale
09/06/2023, 8:55 AMNatalia Peterwas
09/06/2023, 9:48 AM.withPackage("model")
. You should write .withPackage("..model..")
(two dots ..
means zero or more packages)Swapnil Musale
09/06/2023, 10:20 AMigor.wojda
09/06/2023, 10:54 AM