[Bug]: Getting NPE when we try to test a client in test double approach with a default parameter value for init function #41330
Labels
Area/TestFramework
Priority/High
Team/DevTools
Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs )
Type/Bug
Description
Getting NPE when we try to implement tests for a client in test double approach with default parameter value for inti function
Note: This works fine if we give a value for to the default parameter when we mock the initialization.
Steps to Reproduce
main.bal
test.bal
bal test
Affected Version(s)
2201.7.2
2201.8.0: https://github.com/ballerina-platform/ballerina-distribution/releases/tag/v2201.8.0-test-pack
OS, DB, other environment details and versions
No response
Related area
-> Runtime
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: