Expand my Community achievements bar.

subnaik
subnaik
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • Dear Team, I have written below test class for my ClientIntegrationDataAPIServiceImpl class as below. But I am getting nullpointer exception for below in my JUNIT ClassString actual = clientIntegrationDataAPIServiceImpl.requestCommunityCreation(clientCommunity); ****************** JUNIT CLASS Client...

    Type

    Questions

    Views

    664

    Likes

    0

    Replies

    4
  • Thanks Diksha, Here my scenario is that I am hitting one Servlet (http://localhost:4502/bin/content/api/getChildNodes?type=grb&uuid=078b036a-d536-5b8e-9893-94c92041f4d3)  and this servlet is calling the below GetChildNodesServiceImpl class and the code is below. *************************************...

    Type

    Discussions

    Views

    352

    Like

    1

    Replies

    0
  • Dear All, I have written one getchildnodesIMPL service class for which trying to write JUNIT and written the below JUNIT. But in my code coverage it is not taking. *************** JAVA Class ****************private void extracted(ResourceResolver resourceResolver, Node rootNode, JsonObject jsonObjec...

    Type

    Discussions

    Views

    420

    Like

    1

    Replies

    2
  • Hi All, I am doing upload asset through below service and written below code.  import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.InputStream; import java.nio.charset.StandardCharsets; import java.util.Base64; import java.util.HashMap; import java.util.Map; import or...

    Type

    Questions

    Views

    435

    Likes

    0

    Replies

    2
  • Hi All, I have written one custom jQuery for my Customized Content Fragment. Inside this custom Jquery I want to call the dropdown value and on change dropdown value it will show the text field. For example, in My dropdown 3 values are there called Article, Casestudy and External Link. So when someb...

    Type

    Questions

    Views

    556

    Likes

    0

    Replies

    1
  • Hi All, I have written one custom jQuery for my Customized Content Fragment. Inside this custom Jquery I want to call the dropdown value and on change dropdown value it will show the text field. For example, in My dropdown 3 values are there called Article, Casestudy and External Link. So when someb...

    Type

    Questions

    Views

    430

    Likes

    0

    Replies

    1
  • Dear all,I have one simple service implementation class called ResourceResolverServiceImpl and I want to write JUNIT test class for this. I am very new to this JUNIT test. ************************* ResourceResolverServiceImpl Class *********************import test.contentadmin.core.service.ResourceR...

    Type

    Questions

    Views

    270

    Likes

    0

    Replies

    1
  • Dear all,My issue is resolved. Just adding below line of code in bold testLocationString = testLocationString .replace("name", "communityName"); for (String testLocationString : testLocationsStringArray) { testLocationString = testLocationString .replace("name", "communityName"); JsonObject tes...

    Type

    Questions

    Views

    847

    Likes

    0

    Replies

    0
  • Hi Tanika, Yes I have all imports . But I think you are not clear with my requirement. let me tell you once again. I need to change only name to communityName marked as bold, like here. can we use something like replace "or" anything else rather than so much code. if (communityLocation.has(LOCATION_...

    Type

    Questions

    Views

    880

    Likes

    0

    Replies

    0
  • Hi @Tanika02  and all I changes in my Java class, as shown below , but it is coming error , as shown below  Also I am not sure why you put system.out.println as in AEM it is not working.private void settestLocations(Resource masterResource, Node masterNode, CommunityPublishModel testModel) throws Re...

    Type

    Questions

    Views

    901

    Likes

    0

    Replies

    2
Top badges earned by subnaik
Customize the badges you want to showcase on your profile