mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/TestBundleMgrImpl.java
@Test
    public void testHandleBundleEventUpdate()
    {
        m_SUT.getBundlesAsync(25);
        
        setupBundleEvent("UPDATED_REMOTE");
        
        ArgumentCaptor<GetBundleInfoRequestData> msgCaptor = ArgumentCaptor.forClass(GetBundleInfoRequestData.class);
        
        m_RemoteBundleHelper.handleEvent(m_Event);
        
        verify(m_MessageFactory, times(2)).createBundleMessage(
                eq(BundleMessageType.GetBundleInfoRequest), msgCaptor.capture());
        verify(m_MessageWrapper, times(3)).queue(eq(25), Mockito.any(ResponseHandler.class));
    }
/**
     * Test the bundle event handler handling an update bundle event.
     * Verify that a message is sent to the control to retrieve the updated bundle information.
     */
Test the bundle event handler handling an update bundle event.
Verify that a message is sent to the control to retrieve the updated bundle information.
Test the bundle event handler handling an update bundle event . Verify that a message is sent to the control to retrieve the updated bundle information .
@Test
    public void testHandleBundleEventUpdate()
    {
        m_SUT.getBundlesAsync(25);
        setupBundleEvent("UPDATED_REMOTE");
        ArgumentCaptor<GetBundleInfoRequestData> msgCaptor = ArgumentCaptor.forClass(GetBundleInfoRequestData.class);
        m_RemoteBundleHelper.handleEvent(m_Event);
        verify(m_MessageFactory, times(2)).createBundleMessage(
                eq(BundleMessageType.GetBundleInfoRequest), msgCaptor.capture());
        verify(m_MessageWrapper, times(3)).queue(eq(25), Mockito.any(ResponseHandler.class));
    }
@ Test public void testHandleBundleEventUpdate ( ) { m_SUT . getBundlesAsync ( 25 ) ; setupBundleEvent ( "UPDATED_REMOTE" ) ; ArgumentCaptor < GetBundleInfoRequestData > msgCaptor = ArgumentCaptor . forClass ( GetBundleInfoRequestData . class ) ; m_RemoteBundleHelper . handleEvent ( m_Event ) ; verify ( m_MessageFactory , times ( 2 ) ) . createBundleMessage ( eq ( BundleMessageType . GetBundleInfoRequest ) , msgCaptor . capture ( ) ) ; verify ( m_MessageWrapper , times ( 3 ) ) . queue ( eq ( 25 ) , Mockito . any ( ResponseHandler . class ) ) ; }
Test the bundle event handler handling an update bundle event.
Test the bundle event handler handling an update bundle event .