\[SLING-2611] MockResource Properties

\[SLING-2611] MockResource Properties


I recently submitted a patch to the Apache Sling project. This patch includes new functionality for Commons Testing’s MockResource class. The patch adds two methods:

  • addProperty - add a single key, value set
  • getProperties - returns the map of properties which can be modified

These methods allow developers to set arbitrary properties on a MockResource and then when the MockResource is adapted to a ValueMap, the ValueMap will contain these properties.


← Why does my TextImage Resource Type Keep Changing!? Why Aren't My Public Events Working? →