Junit for mutifield test case | Community
Skip to main content
Nandheswara
Level 4
Apr 10, 2023 8:21 AM UTC
Solved

Junit for mutifield test case

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.
Saravanan_Dharmaraj
Saravanan_DharmarajAccepted solution
New Participant
Apr 10, 2023 2:40 PM UTC

3 replies

Saravanan_Dharmaraj
Saravanan_DharmarajAccepted solution
New Participant
Apr 10, 2023 2:40 PM UTC
Suraj_Kamdi
New Participant
Apr 10, 2023 1:23 PM UTC

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

Translate
Shivam153
Level 3
Apr 10, 2023 1:08 PM UTC

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

Call the method appropriately.

 

 

Thanks

Shivam

Translate