Package org.zanata.webtrans.shared.model

Examples of org.zanata.webtrans.shared.model.WorkspaceContext


                .thenReturn(hLocale);

        TranslationWorkspace workspace =
                manager.getOrRegisterWorkspace(workspaceId);

        WorkspaceContext context = workspace.getWorkspaceContext();
        assertThat(context.getWorkspaceId(), Matchers.equalTo(workspaceId));
        assertThat(context.getLocaleName(), Matchers.equalTo("German"));
        assertThat(context.getWorkspaceName(),
                Matchers.equalTo("project (master)"));
    }
View Full Code Here


    @BeforeMethod
    public void setUp() {
        workspaceId =
                new WorkspaceId(ProjectIterationId.of("project", "master",
                        ProjectType.Podir), new LocaleId("en-US"));
        WorkspaceContext workspaceContext =
                new WorkspaceContext(workspaceId, "workspaceName", "en-US");
        translationWorkspace = new TranslationWorkspaceImpl(workspaceContext);
    }
View Full Code Here

        translationWorkspace = new TranslationWorkspaceImpl(null);
    }

    @Test
    public void canGetWorkspaceContext() {
        WorkspaceContext workspaceContext =
                translationWorkspace.getWorkspaceContext();

        assertThat(workspaceContext.getWorkspaceId(),
                Matchers.equalTo(workspaceId));
    }
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.shared.model.WorkspaceContext

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.