mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/channel/TestChannelEventWrapper.java
@Test
    public void testHandleEventWithNotRightTopic()
    {
        Event badEventTopic = PowerMockito.mock(Event.class);
        when(badEventTopic.getTopic()).thenReturn("bad topic");
        
        m_SUT.handleEvent(badEventTopic);
        
        ArgumentCaptor<Event> eventCaptor = ArgumentCaptor.forClass(Event.class);
        verify(m_EventAdmin, times(0)).postEvent(eventCaptor.capture());
    }
/**
     * Verify that incorrect topic does not cause the event admin to post an event.
     */
Verify that incorrect topic does not cause the event admin to post an event.
Verify that incorrect topic does not cause the event admin to post an event .
@Test
    public void testHandleEventWithNotRightTopic()
    {
        Event badEventTopic = PowerMockito.mock(Event.class);
        when(badEventTopic.getTopic()).thenReturn("bad topic");
        m_SUT.handleEvent(badEventTopic);
        ArgumentCaptor<Event> eventCaptor = ArgumentCaptor.forClass(Event.class);
        verify(m_EventAdmin, times(0)).postEvent(eventCaptor.capture());
    }
@ Test public void testHandleEventWithNotRightTopic ( ) { Event badEventTopic = PowerMockito . mock ( Event . class ) ; when ( badEventTopic . getTopic ( ) ) . thenReturn ( "bad topic" ) ; m_SUT . handleEvent ( badEventTopic ) ; ArgumentCaptor < Event > eventCaptor = ArgumentCaptor . forClass ( Event . class ) ; verify ( m_EventAdmin , times ( 0 ) ) . postEvent ( eventCaptor . capture ( ) ) ; }
Verify that incorrect topic does not cause the event admin to post an event.
Verify that incorrect topic does not cause the event admin to post an event .