[SLING-2611] MockResource Properties

By Daniel Klco Daniel Klco on 

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.


comments powered by Disqus