JUnit 5 extension uses JUnit 4 classes

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Fixed
    • Priority: L3 - Default
    • 7.18.0, 7.18.0-alpha1
    • Affects Version/s: None
    • Component/s: None
    • None

      Environment (Required on creation):

      • Use the JUnit 5 extension to write a test

      Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

      • The JUnit 5 extension uses the engine's TestHelper class for common logic shared between the JUnit 4 rule and the extension
      • This class uses org.junit.Assert from JUnit 4

      Steps to reproduce (Required on creation):

      • Run a test that makes use of a TestHelper method that uses the Assert methods, e.g.
        @RegisterExtension
        ProcessEngineExtension extension = ProcessEngineExtension.builder()
            .ensureCleanAfterTest(true)
            .build();
        

      Observed Behavior (Required on creation):

      • Test fails with a ClassNotFoundException

      Expected behavior (Required on creation):

      • Test succeeds

      Root Cause (Required on prioritization):

      Solution Ideas (Optional):

      • TestHelper should not use JUnit 4 classes
      • Workaround: Add a dependency to junit-vintage-engine to the test project

      Hints (optional):

      • Not kinds of usage is affected, only those cases that lead to execution of TestHelper methods that make use of Assert

            Assignee:
            Thorben Lindhauer
            Reporter:
            Thorben Lindhauer
            Thorben Lindhauer Thorben Lindhauer
            Miklas Boskamp Miklas Boskamp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: