mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/utils/TestGrowlMessageUtil.java
@Test
    public void testCreateGlobalFacesMessage()
    {
        m_SUT.createGlobalFacesMessage(FacesMessage.SEVERITY_INFO, "Summary", "Details");
        
        ArgumentCaptor<PushDataMessage> msgCaptor = ArgumentCaptor.forClass(PushDataMessage.class);
        
        verify(m_Manager, times(1)).addMessage(msgCaptor.capture());
        
        PowerMockito.verifyStatic();
        Logging.log(LogService.LOG_INFO, "Details");
        
        PushGrowlMessage pushData = (PushGrowlMessage)msgCaptor.getValue();
        
        assertThat(pushData.getType(), is(PushMessageType.GROWL_MESSAGE.toString()));
        
        assertThat(pushData.getSeverity(), is("info"));
        assertThat(pushData.getSummary(), is("Summary"));
        assertThat(pushData.getDetail(), is("Details"));
        assertThat(pushData.getSticky(), is(false));
    }
/**
     * Test creating a push growl message with no exception.
     */
Test creating a push growl message with no exception.
Test creating a push growl message with no exception .
@Test
    public void testCreateGlobalFacesMessage()
    {
        m_SUT.createGlobalFacesMessage(FacesMessage.SEVERITY_INFO, "Summary", "Details");
        ArgumentCaptor<PushDataMessage> msgCaptor = ArgumentCaptor.forClass(PushDataMessage.class);
        verify(m_Manager, times(1)).addMessage(msgCaptor.capture());
        PowerMockito.verifyStatic();
        Logging.log(LogService.LOG_INFO, "Details");
        PushGrowlMessage pushData = (PushGrowlMessage)msgCaptor.getValue();
        assertThat(pushData.getType(), is(PushMessageType.GROWL_MESSAGE.toString()));
        assertThat(pushData.getSeverity(), is("info"));
        assertThat(pushData.getSummary(), is("Summary"));
        assertThat(pushData.getDetail(), is("Details"));
        assertThat(pushData.getSticky(), is(false));
    }
@ Test public void testCreateGlobalFacesMessage ( ) { m_SUT . createGlobalFacesMessage ( FacesMessage . SEVERITY_INFO , "Summary" , "Details" ) ; ArgumentCaptor < PushDataMessage > msgCaptor = ArgumentCaptor . forClass ( PushDataMessage . class ) ; verify ( m_Manager , times ( 1 ) ) . addMessage ( msgCaptor . capture ( ) ) ; PowerMockito . verifyStatic ( ) ; Logging . log ( LogService . LOG_INFO , "Details" ) ; PushGrowlMessage pushData = ( PushGrowlMessage ) msgCaptor . getValue ( ) ; assertThat ( pushData . getType ( ) , is ( PushMessageType . GROWL_MESSAGE . toString ( ) ) ) ; assertThat ( pushData . getSeverity ( ) , is ( "info" ) ) ; assertThat ( pushData . getSummary ( ) , is ( "Summary" ) ) ; assertThat ( pushData . getDetail ( ) , is ( "Details" ) ) ; assertThat ( pushData . getSticky ( ) , is ( false ) ) ; }
Test creating a push growl message with no exception.
Test creating a push growl message with no exception .