Package org.zanata.webtrans.client.events

Examples of org.zanata.webtrans.client.events.UserConfigChangeEvent


                new AuditInfo(new Date(), "last translator")))));
    }

    @Test
    public void onUserConfigChangedDocument() {
        UserConfigChangeEvent mockEvent = mock(UserConfigChangeEvent.class);
        when(mockEvent.getView()).thenReturn(MainView.Documents);

        documentListPresenter.onUserConfigChanged(mockEvent);

        // verify(mockDisplay).updatePageSize(UserConfigHolder.DEFAULT_DOC_LIST_PAGE_SIZE);
    }
View Full Code Here


        // verify(mockDisplay).updatePageSize(UserConfigHolder.DEFAULT_DOC_LIST_PAGE_SIZE);
    }

    @Test
    public void onUserConfigChangedEditor() {
        UserConfigChangeEvent mockEvent = mock(UserConfigChangeEvent.class);
        when(mockEvent.getView()).thenReturn(MainView.Editor);

        documentListPresenter.onUserConfigChanged(mockEvent);

        verify(mockDisplay).setLayout(ThemesOption.THEMES_DEFAULT.name());
View Full Code Here

    @Test
    public void onUserConfigChanged() {
        when(userOptionsService.getConfigHolder()).thenReturn(
                new UserConfigHolder());

        UserConfigChangeEvent mockEvent = mock(UserConfigChangeEvent.class);

        presenter.onUserConfigChanged(mockEvent);

        verify(display).setThemes(
                userOptionsService.getConfigHolder().getState()
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.client.events.UserConfigChangeEvent

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.