Package org.exoplatform.services.jcr.impl.checker

Examples of org.exoplatform.services.jcr.impl.checker.RepositoryCheckController$MultithreadedChecking


      repositoryService.createRepository(repoEntry);
      assertNotNull(repositoryService.getConfig().getRepositoryConfiguration(repoEntry.getName()));

      // check
      RepositoryCheckController controller = null;
      try
      {
         controller = new RepositoryCheckController(repository);
         String report = controller.checkAll();
         assertFalse(report.contains("NOT consistent"));
      }
      finally
      {
         if (controller != null)
         {
            if (controller.getLastReportPath() != null)
            {
               File lastReport = new File(controller.getLastReportPath());
               if (!lastReport.delete())
               {
                  lastReport.deleteOnExit();
               }
            }
View Full Code Here


      repositoryService.createRepository(repoEntry);
      assertNotNull(repositoryService.getConfig().getRepositoryConfiguration(repoEntry.getName()));

      // check
      RepositoryCheckController controller = null;
      try
      {
         controller = new RepositoryCheckController(repository);
         String report = controller.checkAll();
         assertFalse(report.contains("NOT consistent"));
      }
      finally
      {
         if (controller != null)
         {
            if (controller.getLastReportPath() != null)
            {
               File lastReport = new File(controller.getLastReportPath());
               if (!lastReport.delete())
               {
                  lastReport.deleteOnExit();
               }
            }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.impl.checker.RepositoryCheckController$MultithreadedChecking

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.