WorkspaceId workspaceId =
TestFixture.workspaceId(hLocale.getLocaleId());
GetTransMemoryDetailsAction action =
new GetTransMemoryDetailsAction(1L, 2L);
action.setWorkspaceId(workspaceId);
ProjectIterationId projectIterationId =
workspaceId.getProjectIterationId();
when(
localeServiceImpl.validateLocaleByProjectIteration(
workspaceId.getLocaleId(),
projectIterationId.getProjectSlug(),
projectIterationId.getIterationSlug())).thenReturn(
hLocale);
// text flow 1
HTextFlow hTextFlow1 = TestFixture.makeApprovedHTextFlow(1L, hLocale);
setProjectAndIterationSlug(hTextFlow1, "project", "master");
addHTextFlowTarget(hLocale, hTextFlow1, null);