@Override
  @Before
  public void beforeEach() throws Exception {
    super.beforeEach();

    nameFactory = session.nameFactory();
    repoTypeManager = session.repository().nodeTypeManager();
    session.getWorkspace().getNodeTypeManager().registerNodeTypes(getTestTypes(), true);
  }
예제 #2
0
 @Override
 @Before
 public void beforeEach() throws Exception {
   super.beforeEach();
   context = session.context();
   ntTemplate = new JcrNodeTypeTemplate(context);
   registry = session.namespaces();
   nameFactory = session.nameFactory();
   repoTypeManager = session.repository().nodeTypeManager();
 }
 @Before
 @Override
 public void beforeEach() throws Exception {
   File backupArea = new File("target/backupArea");
   backupDirectory = new File(backupArea, "repoBackups");
   backupDirectory2 = new File(backupArea, "repoBackupsAfter");
   FileUtil.delete(backupArea);
   backupDirectory.mkdirs();
   backupDirectory2.mkdirs();
   new File(backupArea, "backRepo").mkdirs();
   new File(backupArea, "restoreRepo").mkdirs();
   super.beforeEach();
 }
예제 #4
0
 @Override
 @Before
 public void beforeEach() throws Exception {
   super.beforeEach();
   versionManager = session.getWorkspace().getVersionManager();
 }