Closed ThorbenLindhauer closed 1 year ago
Please fix this Issues as soon as possible. Since sonar tells us to remove the public access modifier from JUnit 5 tests, it's quite normal that the public modifier will get removed from all (camunda) tests during upgrade to Junit 5.
So I guess a lot of people will run into this issue. And it was not that easy to find out what's the problem here is. (Because the Test just says "no process deployed" ....)
Hi @pschalk,
Thank you for making us aware of this problem.
Are you interested in contributing the fix to our code base?
Best, Tassilo
This issue was imported from JIRA:
What is this name?
This pseudonym name was generated based on the user name in JIRA to protect the personal data of our JIRA users. You can use this identifier to search for issues by the same reporter.Observed Behavior
org.camunda.bpm.engine.impl.test.TestHelper.getMethod(...) retrieves only public methods for a given method name and its parameters.
Expected behavior
org.camunda.bpm.engine.impl.test.TestHelper.getMethod(...) should retrieve all declared methods for a given method name and its parameters
Root Cause
org.camunda.bpm.engine.impl.test.TestHelper.getMethod(...) calls
clazz.getMethod(methodName, parameterTypes);
Solution Idea
org.camunda.bpm.engine.impl.test.TestHelper.getMethod(...) should call
clazz.getDeclaredMethod(methodName, parameterTypes);
Links
-
Breakdown