mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/mp/TestCurrentMissionMgrImpl.java
private int initCurrentMissionModels(int systemId)
    {
        //verify that since there is no record of controller 123 none of the missions are saved
        m_SUT.getCurrentMissionsForControllerAsync(systemId);
        
        //verify for right message a mission is added
        Event eventRightMsgType = mockAnEvent(systemId, 
                MissionProgrammingMessageType.GetProgramInformationResponse.toString(),
                mockGetProgramInfoResponse());
        
        m_MissionEventHelper.handleEvent(eventRightMsgType);
        
        return m_SUT.getCurrentMissionsForControllerAsync(systemId).size();
    }
/*
     * Initialize m_SUT with missions. Returns count of mission models added.
     */
Initialize m_SUT with missions. Returns count of mission models added.
Initialize m_SUT with missions . Returns count of mission models added .
private int initCurrentMissionModels(int systemId)
    {
        m_SUT.getCurrentMissionsForControllerAsync(systemId);
        Event eventRightMsgType = mockAnEvent(systemId, 
                MissionProgrammingMessageType.GetProgramInformationResponse.toString(),
                mockGetProgramInfoResponse());
        m_MissionEventHelper.handleEvent(eventRightMsgType);
        return m_SUT.getCurrentMissionsForControllerAsync(systemId).size();
    }
private int initCurrentMissionModels ( int systemId ) { m_SUT . getCurrentMissionsForControllerAsync ( systemId ) ; Event eventRightMsgType = mockAnEvent ( systemId , MissionProgrammingMessageType . GetProgramInformationResponse . toString ( ) , mockGetProgramInfoResponse ( ) ) ; m_MissionEventHelper . handleEvent ( eventRightMsgType ) ; return m_SUT . getCurrentMissionsForControllerAsync ( systemId ) . size ( ) ; }
Initialize m_SUT with missions.
Initialize m_SUT with missions .
//verify that since there is no record of controller 123 none of the missions are saved //verify for right message a mission is added