Skip to content

Commit

Permalink
Remove ArchUnit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mnhock committed May 28, 2024
1 parent 3fffdd8 commit 05f7bd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.enofex.naikan.test.architecture;

import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.noClasses;
import static com.tngtech.archunit.library.dependencies.SlicesRuleDefinition.slices;
import static org.junit.jupiter.api.DynamicTest.dynamicTest;

Expand All @@ -14,12 +13,6 @@ private CycleRules() {

static List<DynamicTest> cycleRules(ArchUnitTestsConfig config) {
return List.of(
dynamicTest("No classes should have imports from naikan model",
() -> noClasses()
.should().accessClassesThat()
.resideInAnyPackage("com.enofex.naikan.model")
.check(config.getClasses())),

dynamicTest("There should be no cycles",
() -> slices()
.matching(config.getNamespace() + ".(*)..")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void shouldCreateTestsDefaultConfig() {
ArchUnitTestsConfig config = ArchUnitTestsConfig.defaultConfig();

assertNotNull(config.getDynamicTests());
assertEquals(13, config.getDynamicTests().size());
assertEquals(12, config.getDynamicTests().size());
}

@Test
Expand All @@ -24,7 +24,7 @@ void shouldCreateTestsWithConfig() {
}));

assertNotNull(config.getDynamicTests());
assertEquals(14, config.getDynamicTests().size());
assertEquals(13, config.getDynamicTests().size());
}

}

0 comments on commit 05f7bd6

Please sign in to comment.