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

ZeebeTestThreadSupport.hasProcessInstanceThrownError assert #431

Open
muraliweb9 opened this issue May 18, 2023 · 0 comments
Open

ZeebeTestThreadSupport.hasProcessInstanceThrownError assert #431

muraliweb9 opened this issue May 18, 2023 · 0 comments

Comments

@muraliweb9
Copy link

com.interview.carworkflowcloud.ZeebeTestThreadSupport has many useful asserts.

Something similar to this would be useful:

ZeebeTestThreadSupport.hasProcessInstanceThrownError(processInstance, "element-id");

Something like this in io.camunda.zeebe.process.test.assertions.ProcessInstanceAssert

final long count = StreamFilter.jobRecords(recordStream) .withIntent(JobIntent.ERROR_THROWN) .withElementId(elementId) .stream() .filter(r -> r.getValue().getProcessInstanceKey() == actual) .count();
then assert count

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant