Package org.zanata.webtrans.shared.model

Examples of org.zanata.webtrans.shared.model.TransUnitId


    @Test
    public void onRedrawPageEventWithSelectedTransUnit() {
        List<TransUnit> transUnits =
                Lists.newArrayList(TestFixture.makeTransUnit(1));
        when(navigationService.getCurrentPageValues()).thenReturn(transUnits);
        TransUnitId selectedId = transUnits.get(0).getId();
        when(sourceContentsPresenter.getCurrentTransUnitIdOrNull()).thenReturn(
                selectedId);

        presenter.onRefreshPage(RefreshPageEvent.REDRAW_PAGE_EVENT);
View Full Code Here


        GetTransUnitsNavigationResult navigationResult =
                mock(GetTransUnitsNavigationResult.class);
        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")
View Full Code Here

                resId, msgContext, null, null, null);
    }

    private static TransMemoryMerge mergeTMAction(MergeOptions mergeOptions) {
        TransUnitUpdateRequest updateRequest =
                new TransUnitUpdateRequest(new TransUnitId(1), null, null, 0);
        return new TransMemoryMerge(80, Lists.newArrayList(updateRequest),
                mergeOptions);
    }
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.shared.model.TransUnitId

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.