


I have a sling model
@@SharedValueMapValu(type = SharedComponentProperties.ValueTypes.GLOBAL)
protected String fantasticBtnLabel;
and I have a unit test JUNIT5
context.registerInjectActivateService(new SharedValueMapValueInjector());
When @SharedValueMapValue is called from the Sling Model unit tests, it works... but when I am trying to get the property of "fantasticBtnLabel", I am getting null. how can I solve this?
Views
Replies
Sign in to like this content
Total Likes
Please raise this over at the ACS AEM Commons project; as the feature is coming from there, they should provide the solution to this 🙂
Please raise this over at the ACS AEM Commons project; as the feature is coming from there, they should provide the solution to this 🙂