Package org.zanata.webtrans.server.rpc

Examples of org.zanata.webtrans.server.rpc.GetTransUnitListHandler$HTextFlowToTransUnitFunction


    public GetTransUnitListHandler createGetTransUnitListHandlerWithBehavior(
            DocumentId documentId, List<HTextFlow> hTextFlows, HLocale hLocale,
            int startIndex, int count) {
        // @formatter:off
      GetTransUnitListHandler handler = SeamAutowire.instance().reset()
            .use("identity", identity)
            .use("textFlowDAO", textFlowDAO)
            .use("textFlowSearchServiceImpl", textFlowSearchServiceImpl)
            .use("localeServiceImpl", localeServiceImpl)
            .use("resourceUtils", resourceUtils)
View Full Code Here


            @Override
            public Void answer(InvocationOnMock invocation) throws Throwable {
                Object[] arguments = invocation.getArguments();
                GetTransUnitList action = (GetTransUnitList) arguments[0];
                action.setWorkspaceId(WORKSPACE_ID);
                GetTransUnitListHandler handler =
                        new MockHandlerFactory()
                                .createGetTransUnitListHandlerWithBehavior(
                                        DOCUMENT.getId(), TEXT_FLOWS, LOCALE,
                                        action.getOffset(), action.getCount());
                getTransUnitListResult = handler.execute(action, null);
                return null;
            }
        }).when(dispatcher).execute(actionCaptor.capture(),
                asyncCallbackCaptor.capture());
    }
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.server.rpc.GetTransUnitListHandler$HTextFlowToTransUnitFunction

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.