Public Properties #54
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We don't handle mocked public attributes/properties directly. This means that if you have a dependency to another class public attribute that you want to mock then you should either:
If you can, feel free to share code samples so that we can discuss on your concrete use case |
Beta Was this translation helpful? Give feedback.
We don't handle mocked public attributes/properties directly.
The framework is focused on testing decoupled apex classes that use an apex interface on top of the collaborator implementation and stub its behavior using only the interface layer.
This means that if you have a dependency to another class public attribute that you want to mock then you should either:
If you can, feel free to share code samples so that we can discuss on your concrete use case