Junit for mutifield test case | Community
Skip to main content
Nandheswara
New Participant
April 10, 2023
Solved

Junit for mutifield test case

  • April 10, 2023
  • 3 replies
  • 866 views

Hi all,

Can anyone suggest some Junits 5 blog for creating test case for below code

@586265 @Via("resource") @Named("multifield/.") private List<Multi> multifields; @Override public List<Multi> getMultifields() { return multifields; }

 

Thanks in Advance

Nandheswara

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Saravanan_Dharmaraj
Saravanan_DharmarajAccepted solution
New Participant
April 10, 2023
Suraj_Kamdi
New Participant
April 10, 2023

@nandheswara Create a dummy multifield json based resource using WCM AEM Context.

Shivam153
New Participant
April 10, 2023

Firstly, create a empty list of multi type, Then mock a multi object and add it in list.

Call the method appropriately.

 

 

Thanks

Shivam