Package org.zanata.webtrans.shared.rpc

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


                            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

        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

        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

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

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.