Groups
Sign in
Groups
Spring4D
Conversations
About
Send feedback
Help
Does anybody have a working example for mocking field injection?
51 views
Skip to first unread message
Michael Danninger
unread,
Dec 28, 2023, 3:13:26 PM
12/28/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Spring4D
I would like to mock a field injected with the [Inject] attribute by registering the mock at the GlobalContainer.
Stefan Glienke
unread,
Jan 16, 2024, 6:02:32 AM
Jan 16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Spring4D
Register the mock just like you would register the real thing.
Reply all
Reply to author
Forward
0 new messages