mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/TestBundleConfigurationMgrImpl.java
@Test
    public void testUninstallBundle()
    {
        //Argument captor to capture the uninstall message.
        ArgumentCaptor<BundleMessages.UninstallRequestData> messageCaptor =
                ArgumentCaptor.forClass(BundleMessages.UninstallRequestData.class);
        //Replay
        m_SUT.uninstallBundle(Long.valueOf(25));
        //Verify that the appropriate remote message sender method is called.
        verify(m_MessageFactory).createBundleMessage(eq(BundleMessageType.UninstallRequest), messageCaptor.capture());
        verify(m_MessageWrapper).queue(eq(100), (ResponseHandler) eq(null));
        //Verify the bundle ID within the uninstall method.
        assertThat(messageCaptor.getValue().getBundleId(), is(Long.valueOf(25)));
    }
/**
     * Test the uninstall bundle method.
     * Verify that an uninstall bundle message with the appropriate contents is sent.
     */
Test the uninstall bundle method.
Verify that an uninstall bundle message with the appropriate contents is sent.
Test the uninstall bundle method . Verify that an uninstall bundle message with the appropriate contents is sent .
@Test
    public void testUninstallBundle()
    {
        ArgumentCaptor<BundleMessages.UninstallRequestData> messageCaptor =
                ArgumentCaptor.forClass(BundleMessages.UninstallRequestData.class);
        m_SUT.uninstallBundle(Long.valueOf(25));
        verify(m_MessageFactory).createBundleMessage(eq(BundleMessageType.UninstallRequest), messageCaptor.capture());
        verify(m_MessageWrapper).queue(eq(100), (ResponseHandler) eq(null));
        assertThat(messageCaptor.getValue().getBundleId(), is(Long.valueOf(25)));
    }
@ Test public void testUninstallBundle ( ) { ArgumentCaptor < BundleMessages . UninstallRequestData > messageCaptor = ArgumentCaptor . forClass ( BundleMessages . UninstallRequestData . class ) ; m_SUT . uninstallBundle ( Long . valueOf ( 25 ) ) ; verify ( m_MessageFactory ) . createBundleMessage ( eq ( BundleMessageType . UninstallRequest ) , messageCaptor . capture ( ) ) ; verify ( m_MessageWrapper ) . queue ( eq ( 100 ) , ( ResponseHandler ) eq ( null ) ) ; assertThat ( messageCaptor . getValue ( ) . getBundleId ( ) , is ( Long . valueOf ( 25 ) ) ) ; }
Test the uninstall bundle method.
Test the uninstall bundle method .
//Argument captor to capture the uninstall message. //Replay //Verify that the appropriate remote message sender method is called. //Verify the bundle ID within the uninstall method.