mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/mp/TestCurrentMissionMgrImpl.java
@Test
    public void testExecuteCancelRequest()
    {
        m_SUT.executeCancelRequest("Hawks", 123);
        
        ArgumentCaptor<Message> requestCaptor = ArgumentCaptor.forClass(Message.class);
        verify(m_MessageFactory).createMissionProgrammingMessage(
                eq(MissionProgrammingMessageType.CancelProgramRequest),
                requestCaptor.capture());
        verify(m_MessageWrapper).queue(eq(123), Mockito.any(MissionErrorHandler.class));
        
        CancelProgramRequestData message = (CancelProgramRequestData)requestCaptor.getValue();
        
        assertThat(message.getMissionName(), is("Hawks"));
    }
/**
     * Verify that a cancel request is sent out.
     */
Verify that a cancel request is sent out.
Verify that a cancel request is sent out .
@Test
    public void testExecuteCancelRequest()
    {
        m_SUT.executeCancelRequest("Hawks", 123);
        ArgumentCaptor<Message> requestCaptor = ArgumentCaptor.forClass(Message.class);
        verify(m_MessageFactory).createMissionProgrammingMessage(
                eq(MissionProgrammingMessageType.CancelProgramRequest),
                requestCaptor.capture());
        verify(m_MessageWrapper).queue(eq(123), Mockito.any(MissionErrorHandler.class));
        CancelProgramRequestData message = (CancelProgramRequestData)requestCaptor.getValue();
        assertThat(message.getMissionName(), is("Hawks"));
    }
@ Test public void testExecuteCancelRequest ( ) { m_SUT . executeCancelRequest ( "Hawks" , 123 ) ; ArgumentCaptor < Message > requestCaptor = ArgumentCaptor . forClass ( Message . class ) ; verify ( m_MessageFactory ) . createMissionProgrammingMessage ( eq ( MissionProgrammingMessageType . CancelProgramRequest ) , requestCaptor . capture ( ) ) ; verify ( m_MessageWrapper ) . queue ( eq ( 123 ) , Mockito . any ( MissionErrorHandler . class ) ) ; CancelProgramRequestData message = ( CancelProgramRequestData ) requestCaptor . getValue ( ) ; assertThat ( message . getMissionName ( ) , is ( "Hawks" ) ) ; }
Verify that a cancel request is sent out.
Verify that a cancel request is sent out .