@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(); }
@Override public void doRun(TestCase tc, JCRTestContext context) throws Exception { context.getSession().getItem(absPath); }
@Override public void doPrepare(TestCase tc, JCRTestContext context) throws Exception { absPath = context.getSession().getRootNode().addNode("testNode").getPath(); context.getSession().save(); }
@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); }