you mean using the resource API/value map and an underlying resourceresolver 
mock repository?
you should be able to just put either Date or Calender objects to the value map 
and read them again.

you can also have a look at the sling mock unit tests, that are several 
testcases for date/calendar values.

stefan

>-----Original Message-----
>From: Nicolas Peltier [mailto:npelt...@adobe.com]
>Sent: Tuesday, March 15, 2016 10:39 PM
>To: users@sling.apache.org
>Subject: [sling mock] is it possible to mock a Date property
>
>with resource resolver mock ? doc says it slightly different, but how
>concretely are we supposed to serialise date values?
>
>Thanks,
>Nicolas

Reply via email to