Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

siva_k222
siva_k222
Offline

Badges

Badges
7

Accepted Solutions

Accepted Solutions
0

Likes

Likes
3

Posts

Posts
7

Discussions

Discussions
5

Questions

Questions
2

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by siva_k222
Customize the badges you want to showcase on your profile
Re: Null Pointer Exception in Servlet Testing which having OSGi configurations - Adobe Experience Manager 17-11-2021
Thank you @MohitKumarK , i could able to resolve this issue.

Views

418

Likes

0

Replies

0
Null Pointer Exception in Servlet Testing which having OSGi configurations - Adobe Experience Manager 16-11-2021
Hi Guys,I am new to AEM development and trying to create Junit(Version 4) test cases for my servlet. I am calling an external API and getting JSON data rates in response, during this i am using OSGi configurations for few api related information. I am getting null pointer exception during the test run. Can anyone help me what i am missing here, below are my servlet and test classes code.Servlet:import java.io.IOException;import java.io.UnsupportedEncodingException;import java.security.InvalidKey...

Views

449

Likes

0

Replies

2
Re: How to Unit testing for doPost Servlet which contains HTTP Request - Adobe Experience Manager 12-11-2021
Hi @Vijayalakshmi_S ,You mean to say, we must use OSGi config values in Test class? is there any way we can get the values from config manager like we are getting in main class? Thanks for sharing the info about HttpClient test..

Views

279

Like

1

Replies

0
Re: How to Unit testing for doPost Servlet which contains HTTP Request - Adobe Experience Manager 11-11-2021
Hi @Mayank_Tiwari , Thanks for sharing these, found some similar requirement in https://myaemlearnings.blogspot.com/2020/07/unit-testing-hands-on-for-sling-servlet.html, but here OSGI configuration variables are predefined in Test class, in my case i do not want to define them either in my main servlet or test class. Could you help, how we can do that?

Views

295

Like

1

Replies

2
Re: How to Unit testing for doPost Servlet which contains HTTP Request - Adobe Experience Manager 11-11-2021
Hi @BrianKasingli , Thank you for sharing this, it doesn't have any Http request details. My request contains an external API and also with OSGi configurations defined in console.This is some helpful solution, but OSGI configuration variables are predefined in Test class, in my case i do not want to define them in my main servlet or test class. Could you help me how we can do that? https://myaemlearnings.blogspot.com/2020/07/unit-testing-hands-on-for-sling-servlet.html

Views

296

Like

1

Replies

0
How to Unit testing for doPost Servlet which contains HTTP Request - Adobe Experience Manager 11-11-2021
Hi Guys, Can anyone help me in creating Junit test cases for my servlet. I am new to AEM development and not aware of Junit thing. I create below servlet which will retrive rates from an external API in JSON format.so plz help for unit testing. i need unit testing script for this code, this my code.import java.io.IOException;import java.io.UnsupportedEncodingException;import java.security.InvalidKeyException;import java.security.NoSuchAlgorithmException;import java.text.DateFormat;import java.te...

Views

326

Likes

0

Replies

6
Likes from