Package org.zanata.webtrans.shared.rpc

Examples of org.zanata.webtrans.shared.rpc.GetTransUnitList


    @Test
    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));
View Full Code Here


                Matchers.contains(3, 5, 6, 8));
    }

    @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

         * Client request for page 4 data
         */
        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

        List<TransUnitId> idIndexList = new ArrayList<TransUnitId>();
        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);

        prepareActionAndMockLocaleService(action);

        // When:
        when(
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.shared.rpc.GetTransUnitList

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.