コード例 #1
0
 @Override
 public void doFinish(TestCase tc, JCRTestContext context) throws Exception {
   super.doFinish(tc, context);
   // clear all children
   registryService.getRegistry(sessionProvider).getNode().remove();
   context.getSession().save();
 }
コード例 #2
0
 @Override
 public void doRun(TestCase tc, JCRTestContext context) throws Exception {
   context.getSession().getItem(absPath);
 }
コード例 #3
0
 @Override
 public void doPrepare(TestCase tc, JCRTestContext context) throws Exception {
   absPath = context.getSession().getRootNode().addNode("testNode").getPath();
   context.getSession().save();
 }
コード例 #4
0
 @Override
 protected void createContent(Node parent, TestCase tc, JCRTestContext context) throws Exception {
   value = context.getSession().getValueFactory().createValue("testValue");
   Property property = parent.setProperty(context.generateUniqueName("testProperty"), value);
   addProperty(property);
 }