Package org.zanata.async.handle

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


    }

    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

Related Classes of org.zanata.async.handle.CopyVersionTaskHandle

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.