Class TestsHaveRunnersCondition

java.lang.Object
com.tngtech.archunit.lang.ArchCondition<com.tngtech.archunit.core.domain.JavaClass>
com.hazelcast.test.archunit.TestsHaveRunnersCondition

public class TestsHaveRunnersCondition extends com.tngtech.archunit.lang.ArchCondition<com.tngtech.archunit.core.domain.JavaClass>
Asserts that tests are annotated with `@RunWith` to ensure property isolation
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.tngtech.archunit.lang.ArchCondition

    com.tngtech.archunit.lang.ArchCondition.ConditionByPredicate<T extends com.tngtech.archunit.base.HasDescription & com.tngtech.archunit.core.domain.properties.HasSourceCodeLocation>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    check(com.tngtech.archunit.core.domain.JavaClass clazz, com.tngtech.archunit.lang.ConditionEvents events)
     

    Methods inherited from class com.tngtech.archunit.lang.ArchCondition

    and, as, finish, forSubtype, from, getDescription, init, or, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TestsHaveRunnersCondition

      public TestsHaveRunnersCondition()
  • Method Details

    • check

      public void check(com.tngtech.archunit.core.domain.JavaClass clazz, com.tngtech.archunit.lang.ConditionEvents events)
      Specified by:
      check in class com.tngtech.archunit.lang.ArchCondition<com.tngtech.archunit.core.domain.JavaClass>