[SLING-2611] MockResource Properties

Published on by Dan KlcoPicture of Me Dan Klco

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.


Tags


comments powered by Disqus