Skip to content

Commit b76f118

Browse files
test: improve architectural tests
1 parent 6f0346a commit b76f118

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/test/kotlin/architecture/CleanArchitectureTest.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ class CleanArchitectureTest : StringSpec({
1717
layeredArchitecture()
1818
.consideringAllDependencies()
1919
.layer("entity").definedBy("..entity..")
20-
// .layer("usecase").definedBy("..usecase..")
21-
// .layer("application").definedBy("..application..")
22-
// .layer("infrastructure").definedBy("..infrastructure..")
23-
// .whereLayer("entity").mayOnlyBeAccessedByLayers("usecase", "application", "infrastructure")
24-
// .whereLayer("usecase").mayOnlyBeAccessedByLayers("application", "infrastructure")
25-
// .whereLayer("application").mayOnlyBeAccessedByLayers("infrastructure")
26-
// .whereLayer("infrastructure").mayNotBeAccessedByAnyLayer()
20+
.layer("usecase").definedBy("..usecase..")
21+
.layer("application").definedBy("..application..")
22+
.layer("infrastructure").definedBy("..infrastructure..")
23+
.whereLayer("entity").mayOnlyBeAccessedByLayers("usecase", "application", "infrastructure")
24+
.whereLayer("usecase").mayOnlyBeAccessedByLayers("application", "infrastructure")
25+
.whereLayer("application").mayOnlyBeAccessedByLayers("infrastructure")
26+
.whereLayer("infrastructure").mayNotBeAccessedByAnyLayer()
2727
.check(ClassFileImporter().importPackages("entity", "usecase", "application", "infrastructure"))
2828
}
2929
})

0 commit comments

Comments
 (0)