function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion 

apex code

String parentId=Apexpages.currentPage().getParameters().get('entityId');
                   String childId=Apexpages.currentPage().getParameters().get('fentityId');



i am not able to undersatnd y r v fetching parentID and childID    .

I my test class i am using only 1 ID





Can you give a bit more background as to what the page is meant to be doing? You have just posted up some generic code which has no contextual meaning.




It very much depends on what the code you are testing is doing.


The controller in question clearly expects there to be two parameters in the URL.  Presumably it is doing something with these ids (e.g. querying the objects with those id from the database?).


You really need to be speaking to whoever wrote the original code to understand what their code is intended to do - we may be able to make suggestions, but that will be based on assumptions that we make while reading it.