Hi all,
Can anyone suggest some Junits 5 blog for creating test case for below code
@inject
@Via("resource")
@Named("multifield/.")
private List<Multi> multifields;
@Override
public List<Multi> getMultifields() {
return multifields;
}
Thanks in Advance
Nandheswara
Solved! Go to Solution.
Views
Replies
Total Likes
@Nandheswara Please check the below post and solution given
Firstly, create a empty list of multi type, Then mock a multi object and add it in list.
Call the method appropriately.
Thanks
Shivam
@Nandheswara Create a dummy multifield json based resource using WCM AEM Context.
@Nandheswara Please check the below post and solution given
Views
Likes
Replies