Examples of GetGlossaryDetailsResult


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

                    .getSourceRef(), entry.getSrcLocale().getLocaleId(),
                    hLocale.getLocaleId(), hGlossaryTerm.getVersionNum(),
                    hGlossaryTerm.getLastChanged()));
        }

        return new GetGlossaryDetailsResult(items);
    }
View Full Code Here

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

                            new LocaleId("en-us"), action.getWorkspaceId()
                                    .getLocaleId(), i, new Date());
            items.add(details);
        }

        callback.onSuccess(new GetGlossaryDetailsResult(items));
        Log.info("EXIT DummyGetGlossaryDetailsCommand.execute()");

    }
View Full Code Here

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

        when(display.getTargetText()).thenReturn(targetText);
        when(display.getSourceLabel()).thenReturn(sourceLabel);
        when(display.getTargetLabel()).thenReturn(targetLabel);
        when(messages.entriesLabel(1)).thenReturn("1");

        callback.onSuccess(new GetGlossaryDetailsResult(Lists
                .newArrayList(glossaryDetails)));

        verify(display).setSourceText(item.getSource());
        verify(targetText).setText(item.getSource());
        verify(display).clearEntries();
View Full Code Here

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

        sourceTerm.getGlossaryEntry().getGlossaryTerms()
                .put(targetHLocale, targetTerm);
        when(glossaryDAO.findByIdList(sourceIdList)).thenReturn(
                Lists.newArrayList(sourceTerm));

        GetGlossaryDetailsResult result = handler.execute(action, null);

        verify(identity).checkLoggedIn();
        assertThat(result.getGlossaryDetails(), Matchers.hasSize(1));
        assertThat(result.getGlossaryDetails().get(0).getTarget(),
                Matchers.equalTo("target term"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.