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

How to set json resource for Asset in workflow?


Level 4

how to get  resourceResolver.getResource(payload) json resource while calling this method in junit? 

2 Replies


Level 9


You could probably do that using the AemContext object.

private AemContext context = new AemContext(ResourceResolverType.RESOURCERESOLVER_MOCK);

/* Getting Resolver from current AemContext */ ResourceResolver resourceResolver = context.request().getResourceResolver();