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

Unable To Mock Sub Process From Shared Module Which Doesn't Have ResponseSchema #610

Open
DipeshTest opened this issue Jul 3, 2021 · 0 comments

Comments

@DipeshTest
Copy link

Maven Plugin version: 2.7.1

Maven version: 3.6.3

Product: TIBCO Businessworks Container edition

Product version: 2.5.4

Component: Maven build plugin

Steps to reproduce the issue:

  1. Create a simple BWCE project with a starter process and a subprocess containing actual operation or business logic e.g. operation subprocess.
  2. Create a shared module with a subprocess that doesn't have a response schema e.g logger subprocess.
  3. In the operation subprocess, call the logger subprocess from the shared module.
  4. Create a test file for the operation subprocess from the actual BWCE application.

Additional environment details if any:

Describe the results you received:

  1. You can't mock the logger subprocess call because it doesn't have any response schema while writing the test file for the operation subprocess.

Describe the results you expected:
In most scenarios, we have subprocesses that we spawn or do not have any response schema. In this case, we won't be able to mock such subprocess calls. The only way to get it working

Please help me with this, is it mandatory to have a schema in subprocess response in order to mock it.
If yes then how to mock spawned subprocess or subprocess which doesn't have response schema.

Additional information you deem important (e.g. issue happens only occasionally):

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