Package org.exoplatform.services.document.diff

Examples of org.exoplatform.services.document.diff.DiffService.compare()


      for (int seed = 0; seed < 10; seed++)
      {
         Object[] shuffle = ((DiffServiceImpl)diffService).shuffle(orig);
         Revision revision = diffService.diff(orig, shuffle);
         Object[] patched = revision.patch(orig);
         if (!diffService.compare(patched, shuffle))
         {
            fail("iter " + seed + " revisions differ after patch");
         }
      }
   }
View Full Code Here


      for (int seed = 0; seed < 10; seed++)
      {
         Object[] random = ((DiffServiceImpl)diffService).randomEdit(orig, seed);
         Revision revision = diffService.diff(orig, random);
         Object[] patched = revision.patch(orig);
         if (!diffService.compare(patched, random))
         {
            fail("iter " + seed + " revisions differ after patch");
         }
         orig = random;
      }
View Full Code Here

      for (int seed = 0; seed < 3; seed++)
      {
         Object[] rev = ((DiffServiceImpl)diffService).shuffle(orig);
         Revision revision = diffService.diff(orig, rev);
         Object[] patched = revision.patch(orig);
         if (!diffService.compare(patched, rev))
         {
            fail("iter " + seed + " revisions differ after patch");
         }
         orig = rev;
      }
View Full Code Here

      for (int seed = 0; seed < 3; seed++)
      {
         Object[] rev = ((DiffServiceImpl)diffService).randomEdit(orig, seed);
         Revision revision = diffService.diff(orig, rev);
         Object[] patched = revision.patch(orig);
         if (!diffService.compare(patched, rev))
         {
            fail("iter " + seed + " revisions differ after patch");
         }
      }
   }
View Full Code Here

      DiffService diffService = new DiffServiceImpl(getAlgo());
      Object[] orig = ((DiffServiceImpl)diffService).randomSequence(LARGE);
      Object[] rev = ((DiffServiceImpl)diffService).editAll(orig);
      Revision revision = diffService.diff(orig, rev);
      Object[] patched = revision.patch(orig);
      if (!diffService.compare(patched, rev))
      {
         fail("revisions differ after patch");
      }

   }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.