Package org.zanata.webtrans.client.service

Examples of org.zanata.webtrans.client.service.GetTransUnitActionContext


    }

    @Test
    public void testExecuteToGetAll() throws Exception {
        GetTransUnitList action =
                GetTransUnitList.newAction(new GetTransUnitActionContext(
                        document));
        prepareActionAndMockLocaleService(action);

        long startTime = System.nanoTime();
        GetTransUnitListResult result = handler.execute(action, null);
View Full Code Here


    }

    @Test
    public void testExecuteWithStatusFilterOnly() throws Exception {
        GetTransUnitList action =
                GetTransUnitList.newAction(new GetTransUnitActionContext(
                        document).withFilterFuzzy(true)
                        .withFilterUntranslated(true));
        prepareActionAndMockLocaleService(action);

        GetTransUnitListResult result = handler.execute(action, null);
View Full Code Here

    }

    @Test
    public void testExecuteWithHasErrorFilterOnly() throws Exception {
        GetTransUnitList action =
                GetTransUnitList.newAction(new GetTransUnitActionContext(
                        document).withFilterHasError(true));
        prepareActionAndMockLocaleService(action);

        GetTransUnitListResult result = handler.execute(action, null);
View Full Code Here

    public void testExecuteWithSearchOnly() throws Exception {
        // Given: we want to search for file (mixed case) and we change page
        // size
        // to 10 and start from index 2
        GetTransUnitList action =
                GetTransUnitList.newAction(new GetTransUnitActionContext(
                        document).withFindMessage("FiLe").withCount(10)
                        .withOffset(1));
        prepareActionAndMockLocaleService(action);

        // When:
View Full Code Here

    public void testExecuteWithSearchAndStatusFilter() throws Exception {
        // Given: we want to search for file (mixed case) in fuzzy and
        // untranslated text flows
        GetTransUnitList action =
                GetTransUnitList
                        .newAction(new GetTransUnitActionContext(document)
                                .withFindMessage("FiLe")
                                .withFilterUntranslated(true)
                                .withFilterFuzzy(true));
        prepareActionAndMockLocaleService(action);
View Full Code Here

    }

    @Test
    public void testExecuteWithSearchAndStatusFilter2() throws Exception {
        GetTransUnitList action =
                GetTransUnitList.newAction(new GetTransUnitActionContext(
                        document).withFindMessage("FiLe")
                        .withFilterUntranslated(true).withFilterFuzzy(true)
                        .withFilterHasError(true));
        prepareActionAndMockLocaleService(action);
View Full Code Here

         */
        int offset = 76;
        int countPerPage = 25;

        GetTransUnitList action =
                GetTransUnitList.newAction(new GetTransUnitActionContext(
                        document).withFindMessage("FiLe")
                        .withFilterUntranslated(true).withFilterFuzzy(true)
                        .withFilterHasError(true).withOffset(offset)
                        .withCount(countPerPage));

View Full Code Here

        for (int i = 1; i < offset; i++) {
            idIndexList.add(new TransUnitId(i));
        }

        GetTransUnitList action =
                GetTransUnitList.newAction(new GetTransUnitActionContext(
                        document).withFindMessage("FiLe")
                        .withFilterUntranslated(true).withFilterFuzzy(true)
                        .withFilterHasError(true).withOffset(offset)
                        .withCount(countPerPage));
        action.setNeedReloadIndex(true);
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.client.service.GetTransUnitActionContext

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.