Skip to content

Commit

Permalink
Use Taikai for architecture tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mnhock committed Jun 6, 2024
1 parent cf50dfe commit 9221873
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package com.enofex.naikan.test.architecture;


import com.enofex.taikai.Taikai;
import org.junit.jupiter.api.Test;

class ArchitectureTest {

@Test
void shouldFulfilConstrains() {
Taikai taikai = Taikai.builder()
.namespace("com.enofex.naikan.model")
.test(test -> test
.junit5(junit5 -> junit5
.classesShouldNotBeAnnotatedWithDisabled()
.methodsShouldNotBeAnnotatedWithDisabled()))
.java(java -> java
.imports(imports -> imports
.shouldHaveNoCycles()
.shouldNotImport("..shaded..")
.shouldNotImport("..lombok..")
.shouldNotImport("org.junit.."))
.naming(naming -> naming
.classesShouldNotMatch(".*Impl")
.interfacesShouldNotHavePrefixI()))
.build();

taikai.check();
}
}

0 comments on commit 9221873

Please sign in to comment.