Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-14511

JUnit 5 extension uses JUnit 4 classes

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.18.0, 7.18.0-alpha1
    • None
    • 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

        This is the controller panel for Smart Panels app

              thorben.lindhauer Thorben Lindhauer
              thorben.lindhauer 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: