[Bug]: Object Mocking failed when there is a private field type different #43156
Labels
Area/TestFramework
Priority/High
Reason/EngineeringMistake
The issue occurred due to a mistake made in the past.
Team/DevTools
Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs )
Type/Bug
Milestone
Description
When we have private fields in the Mock object which is not correctly mapped with the field types of the original object, mocking fails giving the following error,
Do we need to validate private fields when we do object mocking?
Steps to Reproduce
You can reproduce the issue with the following source code
Source code
Test code
Affected Version(s)
Latest Ballerina versions
OS, DB, other environment details and versions
No response
Related area
--> Testerina
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: