Unable to adapt resource to my slingModel in test
Hey , i have created json and i am trying to adapt resource to my sling model class. I have created the json correctly using .json on the browser with all fields of component dialog populated , however when i give resource path till the component my adapted sling model returns null . If i update the resource path to anything inside the component in json , i get an adapted sling model with null values for the fields inside (which is expected since the path is wrong).
My issue here is why is not adapting when i give correct path till the component in json . Is there something that i might be missing?