Package org.zanata.webtrans.client.events.NotificationEvent

Examples of org.zanata.webtrans.client.events.NotificationEvent.Severity


    @Test
    public void onNotificationInfo() {
        int msgCount = 5;
        String msg = "Test message";
        String details = "Test details";
        Severity severity = Severity.Info;

        NotificationEvent mockEvent = mock(NotificationEvent.class);
        InlineLink mockInlineLink = mock(InlineLink.class);

        when(mockDisplay.getMessageCount()).thenReturn(msgCount);
View Full Code Here


    @Test
    public void onNotificationError() {
        int msgCount = 5;
        String msg = "Test message";
        String details = "Test details";
        Severity severity = Severity.Error;

        NotificationEvent mockEvent = mock(NotificationEvent.class);
        InlineLink mockInlineLink = mock(InlineLink.class);

        when(mockDisplay.getMessageCount()).thenReturn(msgCount);
View Full Code Here

    @Test
    public void onMsgCount() {
        int msgCount = 200;
        String msg = "Test message";
        String details = "Msg details";
        Severity severity = Severity.Info;

        NotificationEvent mockEvent = mock(NotificationEvent.class);
        InlineLink mockInlineLink = mock(InlineLink.class);

        // when(mockDisplay.getMessageCount()).thenReturn(msgCount);
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.client.events.NotificationEvent.Severity

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.