RE: [sling mock] is it possible to mock a Date property

2016-03-15 Thread Stefan Seifert
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

[sling mock] is it possible to mock a Date property

2016-03-15 Thread Nicolas Peltier
with resource resolver mock ? doc says it slightly different, but how concretely are we supposed to serialise date values? Thanks, Nicolas