mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/mp/TestMissionProgramMgrImpl.java
@Test
    public void testMissionErrorHandlerWithWrongNamespace()
    {
        MissionErrorHandler errHandler = m_SUT.new MissionErrorHandler(0);
        
        TerraHarvestPayload payload = TerraHarvestPayload.newBuilder()
                .setNamespace(Namespace.Asset)
                .setNamespaceMessage(ByteString.EMPTY).build();
        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.createTerraHarvestMessage(payload);
        AssetNamespace namespaceMessage = AssetNamespace.newBuilder()
                .setType(AssetMessageType.ExecuteCommandResponse)
                .setData(ByteString.EMPTY).build();
        ExecuteCommandResponseData dataMsg = ExecuteCommandResponseData.newBuilder()
                .setResponseType(CommandTypesGen.CommandResponse.Enum.CAPTURE_IMAGE_RESPONSE)
                .setResponse(ByteString.EMPTY)
                .setUuid(UUID.newBuilder().setLeastSignificantBits(0).setMostSignificantBits(0).build())
                .build();
        
        errHandler.handleResponse(thMessage, payload, namespaceMessage, dataMsg);
        
        verify(m_GrowlUtil, never()).createGlobalFacesMessage(eq(FacesMessage.SEVERITY_ERROR), 
                eq("Mission Loading Error Occurred"), Mockito.anyString());
    }
/**
     * Verify that with wrong namespace nothing happens.
     */
Verify that with wrong namespace nothing happens.
Verify that with wrong namespace nothing happens .
@Test
    public void testMissionErrorHandlerWithWrongNamespace()
    {
        MissionErrorHandler errHandler = m_SUT.new MissionErrorHandler(0);
        TerraHarvestPayload payload = TerraHarvestPayload.newBuilder()
                .setNamespace(Namespace.Asset)
                .setNamespaceMessage(ByteString.EMPTY).build();
        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.createTerraHarvestMessage(payload);
        AssetNamespace namespaceMessage = AssetNamespace.newBuilder()
                .setType(AssetMessageType.ExecuteCommandResponse)
                .setData(ByteString.EMPTY).build();
        ExecuteCommandResponseData dataMsg = ExecuteCommandResponseData.newBuilder()
                .setResponseType(CommandTypesGen.CommandResponse.Enum.CAPTURE_IMAGE_RESPONSE)
                .setResponse(ByteString.EMPTY)
                .setUuid(UUID.newBuilder().setLeastSignificantBits(0).setMostSignificantBits(0).build())
                .build();
        errHandler.handleResponse(thMessage, payload, namespaceMessage, dataMsg);
        verify(m_GrowlUtil, never()).createGlobalFacesMessage(eq(FacesMessage.SEVERITY_ERROR), 
                eq("Mission Loading Error Occurred"), Mockito.anyString());
    }
@ Test public void testMissionErrorHandlerWithWrongNamespace ( ) { MissionErrorHandler errHandler = m_SUT . new MissionErrorHandler ( 0 ) ; TerraHarvestPayload payload = TerraHarvestPayload . newBuilder ( ) . setNamespace ( Namespace . Asset ) . setNamespaceMessage ( ByteString . EMPTY ) . build ( ) ; TerraHarvestMessage thMessage = TerraHarvestMessageHelper . createTerraHarvestMessage ( payload ) ; AssetNamespace namespaceMessage = AssetNamespace . newBuilder ( ) . setType ( AssetMessageType . ExecuteCommandResponse ) . setData ( ByteString . EMPTY ) . build ( ) ; ExecuteCommandResponseData dataMsg = ExecuteCommandResponseData . newBuilder ( ) . setResponseType ( CommandTypesGen . CommandResponse . Enum . CAPTURE_IMAGE_RESPONSE ) . setResponse ( ByteString . EMPTY ) . setUuid ( UUID . newBuilder ( ) . setLeastSignificantBits ( 0 ) . setMostSignificantBits ( 0 ) . build ( ) ) . build ( ) ; errHandler . handleResponse ( thMessage , payload , namespaceMessage , dataMsg ) ; verify ( m_GrowlUtil , never ( ) ) . createGlobalFacesMessage ( eq ( FacesMessage . SEVERITY_ERROR ) , eq ( "Mission Loading Error Occurred" ) , Mockito . anyString ( ) ) ; }
Verify that with wrong namespace nothing happens.
Verify that with wrong namespace nothing happens .