Is JbpmJUnitBaseTestCase based unit test supported in business-central

36 views
Skip to first unread message

S. H.

unread,
Mar 7, 2022, 6:46:45 PM3/7/22
to jBPM Setup
Hi,

I have exactly the same question asked at https://access.redhat.com/solutions/5841321, but I can't see the solution there as I don't have a red hat subscription. I'm wondering if anyone here has an answer? Thanks!

Issue:
  • We have written unit test code that exends JbpmJUnitBaseTestCase for our business processes, they are packaged inside src/test/java folder. However when importing the project into business-central these unit test classes are recognized as "Data Objects" and fail to build.
  • Is there a way to make business central recognize the unit test code extending JbpmJUnitBaseTestCase , or packaged under src/test/java project folder ?
  • In business-central, when trying to build a project that has JbpmJUnitBaseTestCase based unit test classes, it fails with below ClassNotFoundException:

    2020-10-29 10:29:29,812 ERROR [org.kie.workbench.common.screens.datamodeller.backend.server.indexing.JavaSourceVisitor] (Thread-168) Unable to index superclass name for class: com.redhat.example.MyBaseJbpmTest, superclass: org.jbpm.test.JbpmJUnitBaseTestCase: java.lang.ClassNotFoundException: Unable to find class 'org.jbpm.test.JbpmJUnitBaseTestCase'
Reply all
Reply to author
Forward
0 new messages