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?
Solved! Go to Solution.
Views
Replies
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
Views
Likes
Replies
Views
Likes
Replies