mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/configuration/TestSystemConfigurationImpl.java
@Test
    public void testHandleSetPropertyResponse()
    {
        ConfigurationResponseHandler responseHandler = m_SUT.new ConfigurationResponseHandler();
        
        ConfigAdminNamespace namespaceMessage = 
                ConfigAdminNamespace.newBuilder().setType(ConfigAdminMessageType.SetPropertyResponse).build();
        TerraHarvestPayload payload = TerraHarvestPayload.newBuilder().setNamespace(Namespace.ConfigAdmin).
                setNamespaceMessage(namespaceMessage.toByteString()).build();
        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.createTerraHarvestMessage(25, 1, 
                Namespace.ConfigAdmin, 5000, namespaceMessage);
        
        responseHandler.handleResponse(thMessage, payload, namespaceMessage, null);
        
        verify(m_GrowlUtil).createGlobalFacesMessage(eq(FacesMessage.SEVERITY_INFO), eq("Properties Accepted:"), 
                eq("Controller 0x00000019 has accepted the list of updated properties."));
    }
/**
     * Verify that a growl message is posted when a set property response message is received.
     */
Verify that a growl message is posted when a set property response message is received.
Verify that a growl message is posted when a set property response message is received .
@Test
    public void testHandleSetPropertyResponse()
    {
        ConfigurationResponseHandler responseHandler = m_SUT.new ConfigurationResponseHandler();
        ConfigAdminNamespace namespaceMessage = 
                ConfigAdminNamespace.newBuilder().setType(ConfigAdminMessageType.SetPropertyResponse).build();
        TerraHarvestPayload payload = TerraHarvestPayload.newBuilder().setNamespace(Namespace.ConfigAdmin).
                setNamespaceMessage(namespaceMessage.toByteString()).build();
        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.createTerraHarvestMessage(25, 1, 
                Namespace.ConfigAdmin, 5000, namespaceMessage);
        responseHandler.handleResponse(thMessage, payload, namespaceMessage, null);
        verify(m_GrowlUtil).createGlobalFacesMessage(eq(FacesMessage.SEVERITY_INFO), eq("Properties Accepted:"), 
                eq("Controller 0x00000019 has accepted the list of updated properties."));
    }
@ Test public void testHandleSetPropertyResponse ( ) { ConfigurationResponseHandler responseHandler = m_SUT . new ConfigurationResponseHandler ( ) ; ConfigAdminNamespace namespaceMessage = ConfigAdminNamespace . newBuilder ( ) . setType ( ConfigAdminMessageType . SetPropertyResponse ) . build ( ) ; TerraHarvestPayload payload = TerraHarvestPayload . newBuilder ( ) . setNamespace ( Namespace . ConfigAdmin ) . setNamespaceMessage ( namespaceMessage . toByteString ( ) ) . build ( ) ; TerraHarvestMessage thMessage = TerraHarvestMessageHelper . createTerraHarvestMessage ( 25 , 1 , Namespace . ConfigAdmin , 5000 , namespaceMessage ) ; responseHandler . handleResponse ( thMessage , payload , namespaceMessage , null ) ; verify ( m_GrowlUtil ) . createGlobalFacesMessage ( eq ( FacesMessage . SEVERITY_INFO ) , eq ( "Properties Accepted:" ) , eq ( "Controller 0x00000019 has accepted the list of updated properties." ) ) ; }
Verify that a growl message is posted when a set property response message is received.
Verify that a growl message is posted when a set property response message is received .