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

Create ProcessEngineMethodRule

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • None
    • None
    • engine

      The ProcessEngineRule does not work with parameterized unit tests and tests with a renamed display name, cf CAM-3325.

      This is due to the fact that the executed method is not accessible rules that extend TestRule. However, ProcessEngineRule should extend TestRule because it is the rule interface recommended by JUnit and works with concepts like RuleChains.

      The problem that the actual executed Java class and method are not accessible is a known issue in the JUnit project (e.g. https://github.com/junit-team/junit/issues/198) but is not fixed yet (and appears to get fixed with the next major version).

      As a workaround, we could offer a second Rule that extends MethodRule. The MethodRule class provides access to the executed class and method, however does not work with recent JUnit concepts (like MethodRule). From our perspective, this is a workaround.

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              thorben.lindhauer Thorben Lindhauer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: