Package org.zanata.model

Examples of org.zanata.model.HAccount


    private static HTextFlowTarget addHTextFlowTarget(HLocale hLocale,
            HTextFlow hTextFlow, String username) {
        HTextFlowTarget hTextFlowTarget =
                new HTextFlowTarget(hTextFlow, hLocale);
        HPerson lastModifiedBy = new HPerson();
        HAccount account = new HAccount();
        account.setUsername(username);
        lastModifiedBy.setAccount(account);
        hTextFlowTarget.setLastModifiedBy(lastModifiedBy);
        hTextFlowTarget.setLastChanged(new Date());
        return hTextFlowTarget;
    }
View Full Code Here


                        new EditorClientId("sessionId", 2L));
        when(mockWorkspace.removeEditorClients("sessionId")).thenReturn(
                editorClientIds);
        spy.getOrRegisterWorkspace(workspaceId);

        HAccount hAccount = new HAccount();
        HPerson person = new HPerson();
        person.setName("patrick");
        person.setEmail("pahuang@redhat.com");
        hAccount.setPerson(person);
        when(accountDAO.getByUsername("admin")).thenReturn(hAccount);

        spy.exitWorkspace("admin");

        verify(mockWorkspace).removeEditorClients("sessionId");
View Full Code Here

TOP

Related Classes of org.zanata.model.HAccount

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.