Class TestMethodRulesTest

java.lang.Object
org.cibseven.bpm.engine.test.archunit.TestMethodRulesTest

public class TestMethodRulesTest extends Object
Guards against JUnit 3 style test methods: JUnit 5 only runs methods annotated with @Test (or another test annotation), a public void testXxx() method without such an annotation is silently skipped, and the build stays green.

Checks the test classes of every module that scans this artifact (<dependenciesToScan> of the surefire plugin).

  • Field Details

    • testMethodsMustBeAnnotatedAsTest

      public static final com.tngtech.archunit.lang.ArchRule testMethodsMustBeAnnotatedAsTest
  • Constructor Details

    • TestMethodRulesTest

      public TestMethodRulesTest()