mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/utils/TestGrowlMessageUtil.java
@Test
    public void testCreateLocalFacesMessageSticky()
    {
        IllegalArgumentException exception =  mock(IllegalArgumentException.class);
        
        m_SUT.createLocalFacesMessage(FacesMessage.SEVERITY_INFO, "INFO", "INFO_DETAILS", exception, true);
        PowerMockito.verifyStatic();
        Logging.log(LogService.LOG_INFO, exception,"INFO_DETAILS");
        
        ArgumentCaptor<PushGrowlMessage> msgCaptor = ArgumentCaptor.forClass(PushGrowlMessage.class);
        verify(m_Manager).addMessage(msgCaptor.capture());
        
        PushGrowlMessage msg = msgCaptor.getAllValues().get(0);
        assertThat(msg.getSeverity(), is("info"));
        assertThat(msg.getSticky(), is(true));
        assertThat(msg.getSummary(), is("INFO"));
        assertThat(msg.getDetail(), is("INFO_DETAILS"));
    }
/**
     * Test creating a message with the sticky attribute.
     * Verify that the growl message is created appropriately.
     */
Test creating a message with the sticky attribute.
Verify that the growl message is created appropriately.
Test creating a message with the sticky attribute . Verify that the growl message is created appropriately .
@Test
    public void testCreateLocalFacesMessageSticky()
    {
        IllegalArgumentException exception =  mock(IllegalArgumentException.class);
        m_SUT.createLocalFacesMessage(FacesMessage.SEVERITY_INFO, "INFO", "INFO_DETAILS", exception, true);
        PowerMockito.verifyStatic();
        Logging.log(LogService.LOG_INFO, exception,"INFO_DETAILS");
        ArgumentCaptor<PushGrowlMessage> msgCaptor = ArgumentCaptor.forClass(PushGrowlMessage.class);
        verify(m_Manager).addMessage(msgCaptor.capture());
        PushGrowlMessage msg = msgCaptor.getAllValues().get(0);
        assertThat(msg.getSeverity(), is("info"));
        assertThat(msg.getSticky(), is(true));
        assertThat(msg.getSummary(), is("INFO"));
        assertThat(msg.getDetail(), is("INFO_DETAILS"));
    }
@ Test public void testCreateLocalFacesMessageSticky ( ) { IllegalArgumentException exception = mock ( IllegalArgumentException . class ) ; m_SUT . createLocalFacesMessage ( FacesMessage . SEVERITY_INFO , "INFO" , "INFO_DETAILS" , exception , true ) ; PowerMockito . verifyStatic ( ) ; Logging . log ( LogService . LOG_INFO , exception , "INFO_DETAILS" ) ; ArgumentCaptor < PushGrowlMessage > msgCaptor = ArgumentCaptor . forClass ( PushGrowlMessage . class ) ; verify ( m_Manager ) . addMessage ( msgCaptor . capture ( ) ) ; PushGrowlMessage msg = msgCaptor . getAllValues ( ) . get ( 0 ) ; assertThat ( msg . getSeverity ( ) , is ( "info" ) ) ; assertThat ( msg . getSticky ( ) , is ( true ) ) ; assertThat ( msg . getSummary ( ) , is ( "INFO" ) ) ; assertThat ( msg . getDetail ( ) , is ( "INFO_DETAILS" ) ) ; }
Test creating a message with the sticky attribute.
Test creating a message with the sticky attribute .