i did't get it..https://github.com/joerghoh/cqdump/blob/master/unittests/core/src/main/java/de/joerghoh/cqdump/core/servlets/ChildListOptimized.java why it is using ChildListOptimized.java.., private JSONObject convertResourceToJSON (Resource resource) throws JSONException {JSONObject obj = new JS...
if u dnt mind.., execute my code in ur ide, and write unittest for our code,and send meplz guys this is my 1st time usnit testing i dnt know how run how to write in aem
with that @Slingservlet ex:http://localhost:4502/content.childlist.json whenever hit this url we can get jsonarray for node properties.,actaul requirement ->This web service is mounted to the selector .childlist.json. Given any node path, it returns a JSONArray of the node's child node paths and pr...
i written testing in eclipse maven archetype10, but how get request from servlet,, how to test servlet class and how link with test class and servlet class,and these servlet class how can i get response without running ... package com.aem.community.core.servlets;import java.io.IOException;import ja...
hi bro..i written like this@RunWith(MockitoJUnitRunner.class)public class ChildListTest {@InjectMocksprivate ChildList childlist;@Mockprivate SlingHttpServletRequest request;@Mockprivate SlingHttpServletResponse response;@MockResource resource;Logger LOGGER;@MockNode nodes;@Mockprivate ResourceResol...
i reffered these things,but i din't get anything, this is 1st time to doing unittesing for servlet in aem., can u write servlet unittesting testcases how to write , how to get resources ,how to json data equals
hi guys i need help from you, i created chillist servlet for reading properties from /content it returns a JSONArray of the node's child node paths and properties.so plz help for unit testing. i need unit testing script for this code, this my codepackage com.aem.community.core.servlets;import java.i...