Package org.zanata.webtrans.shared.rpc

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


                        action.getLocaleId(), action.getSourceLocaleId(),
                        transMemoryQuery);

        log.debug("Returning {} TM matches for {}", results.size(),
                transMemoryQuery);
        return new GetTranslationMemoryResult(action, results);
    }
View Full Code Here


        GetTranslationMemory action =
                new GetTranslationMemory(query, targetLocaleId, sourceLocaleId);

        // When:
        GetTranslationMemoryResult result = handler.execute(action, null);

        // Then:
        verify(identity).checkLoggedIn();
        assertThat(result.getMemories(), Matchers.hasSize(0));
    }
View Full Code Here

                ApprovedInternal, 3, 85));
        matches.add(new TransMemoryResultItem(source, target3,
                TranslatedInternal, 3, 85));
        matches.add(new TransMemoryResultItem(source, target4,
                TranslatedInternal, 3, 85));
        callback.onSuccess(new GetTranslationMemoryResult(action, matches));
        Log.info("EXIT DummyGetTranslationMemoryCommand.execute()");
    }
View Full Code Here

        // verify callback on success
        AsyncCallback<GetTranslationMemoryResult> callback =
                callbackCaptor.getValue();
        ArrayList<TransMemoryResultItem> transMemories =
                Lists.newArrayList(transMemoryResultItem);
        callback.onSuccess(new GetTranslationMemoryResult(getTMActionCaptor
                .getValue(), transMemories));

        inOrder.verify(display).renderTable(transMemories,
                Lists.newArrayList("search query"));
        inOrder.verify(display).stopProcessing(true);
View Full Code Here

                callbackCaptor.capture());
        // verify callback on success
        AsyncCallback<GetTranslationMemoryResult> callback =
                callbackCaptor.getValue();
        ArrayList<TransMemoryResultItem> transMemories = Lists.newArrayList();
        callback.onSuccess(new GetTranslationMemoryResult(getTMActionCaptor
                .getValue(), transMemories));

        inOrder.verify(display).stopProcessing(false);
    }
View Full Code Here

TOP

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

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.