Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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 @SupportMember ,

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 @SupportMember ,

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