Class ArchUnitRules


  • public final class ArchUnitRules
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.tngtech.archunit.lang.ArchRule COMPLETABLE_FUTURE_USED_ONLY_WITH_EXPLICIT_EXECUTOR
      ArchUnit rule checking that only CompletableFuture async methods version with explicitly defined executor service is used.
      static com.tngtech.archunit.lang.ArchRule MATCHERS_USAGE
      ArchUnit rule checking that Hamcrest matchers are not mixed with AssertJ.
      static com.tngtech.archunit.lang.ArchRule NO_JUNIT_MIXING
      ArchUnit rule checking that JUnit4 and JUnit5 annotations are not mixed within the same tes
      static com.tngtech.archunit.lang.ArchRule SERIALIZABLE_SHOULD_HAVE_VALID_SERIAL_VERSION_UID
      ArchUnit rule checking that Serializable classes have a valid serialVersionUID
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SERIALIZABLE_SHOULD_HAVE_VALID_SERIAL_VERSION_UID

        public static final com.tngtech.archunit.lang.ArchRule SERIALIZABLE_SHOULD_HAVE_VALID_SERIAL_VERSION_UID
        ArchUnit rule checking that Serializable classes have a valid serialVersionUID
      • COMPLETABLE_FUTURE_USED_ONLY_WITH_EXPLICIT_EXECUTOR

        public static final com.tngtech.archunit.lang.ArchRule COMPLETABLE_FUTURE_USED_ONLY_WITH_EXPLICIT_EXECUTOR
        ArchUnit rule checking that only CompletableFuture async methods version with explicitly defined executor service is used.
      • MATCHERS_USAGE

        public static final com.tngtech.archunit.lang.ArchRule MATCHERS_USAGE
        ArchUnit rule checking that Hamcrest matchers are not mixed with AssertJ.
      • NO_JUNIT_MIXING

        public static final com.tngtech.archunit.lang.ArchRule NO_JUNIT_MIXING
        ArchUnit rule checking that JUnit4 and JUnit5 annotations are not mixed within the same tes