return glossaryTerm;
}
@Test
public void testExecute() throws Exception {
WorkspaceId workspaceId =
TestFixture.workspaceId(targetHLocale.getLocaleId());
ArrayList<Long> sourceIdList = Lists.newArrayList(1L);
GetGlossaryDetailsAction action =
new GetGlossaryDetailsAction(sourceIdList);
action.setWorkspaceId(workspaceId);
when(
localeServiceImpl.validateLocaleByProjectIteration(workspaceId
.getLocaleId(), workspaceId.getProjectIterationId()
.getProjectSlug(), workspaceId.getProjectIterationId()
.getIterationSlug())).thenReturn(targetHLocale);
HGlossaryTerm sourceTerm = glossaryTerm("src term", srcLocale);
HGlossaryTerm targetTerm = glossaryTerm("target term", srcLocale);
sourceTerm.getGlossaryEntry().getGlossaryTerms()
.put(targetHLocale, targetTerm);