Package org.zanata.webtrans.shared.model

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


        verify(display).showDiffLegend(false);
    }

    @Test
    public void showTMDetails() {
        TransMemoryResultItem object =
                new TransMemoryResultItem(new ArrayList<String>(),
                        new ArrayList<String>(), MatchType.ApprovedInternal, 0,
                        0);
        when(display.getSearchType()).thenReturn(searchType);

        presenter.showTMDetails(object);
View Full Code Here


        verify(transMemoryDetailsPresenter).show(object);
    }

    @Test
    public void fireCopyEvent() {
        TransMemoryResultItem object =
                new TransMemoryResultItem(new ArrayList<String>(),
                        new ArrayList<String>(), MatchType.ApprovedInternal, 0,
                        0);
        ArgumentCaptor<CopyDataToEditorEvent> eventCaptor =
                ArgumentCaptor.forClass(CopyDataToEditorEvent.class);
View Full Code Here

        tmDetail = tmDetail(projectName, docId, resId, msgContext);

    }

    private static TransMemoryResultItem tmResultWithSimilarity(double percent) {
        return new TransMemoryResultItem(null, null,
                MatchType.TranslatedInternal, 0, percent);
    }
View Full Code Here

                MatchType.TranslatedInternal, 0, percent);
    }

    private static TransMemoryResultItem
            tmResultWithSimilarityAndExternallyImported(double percent) {
        return new TransMemoryResultItem(null, null, MatchType.Imported, 0,
                percent);
    }
View Full Code Here

TOP

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

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.