Expand my Community achievements bar.

SOLVED

How do I mock org.apache.commons.httpclient.HttpClient

Avatar

Level 7

I am trying to mock org.apache.commons.httpclient.HttpClient in my unit tests, but unable to do so. How can I do this?

I have tried this, https://blogs.perficient.com/2019/01/23/how-to-test-apache-httpclient-in-the-context-of-aem/, but it does not work.

1 Accepted Solution

Avatar

Correct answer by
Level 5

Hi @AEMWizard ,

I have tried to answer the same in another thread. Please check the below thread if that satisfy your requirement and let me know if there is anything.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-do-i-mock-org-apache-c...

Thanks,

Ravi Joshi 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 5

Hi @AEMWizard ,

I have tried to answer the same in another thread. Please check the below thread if that satisfy your requirement and let me know if there is anything.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-do-i-mock-org-apache-c...

Thanks,

Ravi Joshi