Fork me on GitHub

Commons FTP Client


Utility to create JCR node tree and session from an exported xml file, for testing purposes.
Basic usage:

  // create a JCR node structure from a file
  Node topNode = JcrMockUp.mockJcrNode("/content.xml");

  // create a JCR session containing a node structure from a file
  Session session = JcrMockUp.mockJcrSession("/content.xml");

Please refer to the source code and test class org.onehippo.forge.utilities.commons.jcrmockup.TestJcrMockup for details.