Examples of CopyVersionTaskHandle


Examples of org.zanata.async.handle.CopyVersionTaskHandle

                newVersionSlug);

        int tftSize = insertTextFlowAndTargetToDoc(existingDoc, 1, true);

        spyService.copyVersion(existingProjectSlug, existingVersionSlug,
                newVersionSlug, new CopyVersionTaskHandle());

        int expectedTftBatchRuns =
                (tftSize / spyService.TFT_BATCH_SIZE)
                        + (tftSize % spyService.TF_BATCH_SIZE == 0 ? 0 : 1);
        verify(spyService, times(expectedTftBatchRuns))
View Full Code Here

Examples of org.zanata.async.handle.CopyVersionTaskHandle

    }

    private void runCopyVersion(String projectSlug, String versionSlug,
            String newVersionSlug) {
        service.copyVersion(projectSlug, versionSlug, newVersionSlug,
                new CopyVersionTaskHandle());

        HProjectIteration existingVersion = projectIterationDAO.getBySlug(
                projectSlug, versionSlug);
        HProjectIteration newVersion =
                projectIterationDAO.getBySlug(projectSlug, newVersionSlug);
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.