Skip to content

Commit

Permalink
Move ArchUnit Autowired test naikan module
Browse files Browse the repository at this point in the history
  • Loading branch information
mnhock committed May 28, 2024
1 parent c282b80 commit c9ae4cc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import static com.enofex.naikan.test.architecture.CyclicRules.cyclicRules;
import static com.enofex.naikan.test.architecture.ImportRules.importRules;
import static com.enofex.naikan.test.architecture.NamingRules.namingRules;
import static com.enofex.naikan.test.architecture.NoAutowiredFieldsRules.noAutowiredFieldsRules;
import static com.enofex.naikan.test.architecture.TestingRules.testingRules;

import com.tngtech.archunit.ArchConfiguration;
Expand Down Expand Up @@ -96,7 +95,6 @@ public ArchUnitTestsConfig build() {
ArchUnitTestsConfig config = new ArchUnitTestsConfig(this);

this.dynamicTests.add(cyclicRules(config));
this.dynamicTests.add(noAutowiredFieldsRules(config));
this.dynamicTests.addAll(namingRules(config));
this.dynamicTests.addAll(importRules(config));
this.dynamicTests.addAll(testingRules(config));
Expand Down

This file was deleted.

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(12, config.getDynamicTests().size());
assertEquals(11, config.getDynamicTests().size());
}

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

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

}

0 comments on commit c9ae4cc

Please sign in to comment.