Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mnhock committed Jun 16, 2024
1 parent e60780c commit 188aad8
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/test/java/com/enofex/taikai/ArchitectureTest.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
package com.enofex.taikai;

import com.enofex.taikai.Namespace.IMPORT;
import com.enofex.taikai.TaikaiRule.Configuration;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;

class ArchitectureTest {

Expand All @@ -16,11 +13,11 @@ void shouldFulfilConstrains() {
.namespace("com.enofex.taikai")
.test(test -> test
.junit5(junit5 -> junit5
.methodsShouldNotDeclareThrownExceptions()
.classesShouldNotBeAnnotatedWithDisabled()
.methodsShouldNotBeAnnotatedWithDisabled()
.methodsShouldMatch("should.*")
.methodsShouldBePackagePrivate()
.classesShouldNotBeAnnotatedWithDisabled()
.methodsShouldNotBeAnnotatedWithDisabled()))
.methodsShouldNotDeclareThrownExceptions()))
.java(java -> java
.noUsageOfDeprecatedAPIs()
.finalClassesShouldNotHaveProtectedMembers()
Expand All @@ -39,13 +36,9 @@ void shouldFulfilConstrains() {
.shouldNotImport("org.junit.."))
.naming(naming -> naming
.classesShouldNotMatch(".*Impl")
.methodsAnnotatedWithShouldMatch(Test.class, "should.*",
Configuration.of(IMPORT.ONLY_TESTS))
.methodsAnnotatedWithShouldMatch(ParameterizedTest.class, "should.*",
Configuration.of(IMPORT.ONLY_TESTS))
.interfacesShouldNotHavePrefixI()
.constantsShouldFollowConvention()))
.build()
.check();
}
}
}

0 comments on commit 188aad8

Please sign in to comment.