Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding possibility to throw an error on execution for CallActivityMocks #327

Merged
merged 2 commits into from
Oct 4, 2023

Conversation

DavidEllermannIkor
Copy link
Contributor

In our team we switched to the camunda-platform-7-mockito library.
In addition, we wanted to improve our tests and tried to simulate activities that should trigger errors.
Regarding #267, I saw that this is currently not possible.

For our project I tried to create my own implementation of the CallActivityMock class with some modifications.

With these changes, I was able to run a JUnit 5 test that throws an error on the mocked activity.

I'm not sure now if the attached test is correct, but I've added an modified test for escalation so that an error is thrown

If this is an acceptable pull request, we'd love to see it included in a future release.

@CLAassistant
Copy link

CLAassistant commented Aug 23, 2023

CLA assistant check
All committers have signed the CLA.

Adding test for for throwing an error on execution
@DavidEllermannIkor
Copy link
Contributor Author

The change <commons-lang3.version>3.12.0</commons-lang3.version>
was not done by me. It seems dependabot has done it automatically.

@jangalinski
Copy link
Collaborator

Thanks a lot for the contribution, I will have a look at it asap!

@jangalinski jangalinski added this to the 6.19.1 milestone Oct 4, 2023
@jangalinski jangalinski merged commit 3005381 into camunda-community-hub:master Oct 4, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants