mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/asset/TestAssetImpl.java
@Test
    public void testPostResponseUpdate()
            throws ValidationFailedException, IllegalArgumentException, PersistenceFailedException
    {
        GetPanTiltResponse response = new GetPanTiltResponse();

        // replay
        m_SUT.postResponseUpdate(response);

        // verify posted
        Map<String, Object> map = new HashMap<>();
        map.put(FactoryDescriptor.EVENT_PROP_OBJ, m_SUT);
        map.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, m_SUT.getName());
        map.put(Asset.EVENT_PROP_ASSET_COMMAND_RESPONSE_TYPE, GetPanTiltResponse.class.getName());
        map.put(Asset.EVENT_PROP_ASSET_COMMAND_RESPONSE, response);
        EventAdminVerifier.assertLastEvent(m_EventAdmin, Asset.TOPIC_COMMAND_RESPONSE_UPDATED, map);
    }
/**
     * Verify event is posted given the parameters.
     */
Verify event is posted given the parameters.
Verify event is posted given the parameters .
@Test
    public void testPostResponseUpdate()
            throws ValidationFailedException, IllegalArgumentException, PersistenceFailedException
    {
        GetPanTiltResponse response = new GetPanTiltResponse();
        m_SUT.postResponseUpdate(response);
        Map<String, Object> map = new HashMap<>();
        map.put(FactoryDescriptor.EVENT_PROP_OBJ, m_SUT);
        map.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, m_SUT.getName());
        map.put(Asset.EVENT_PROP_ASSET_COMMAND_RESPONSE_TYPE, GetPanTiltResponse.class.getName());
        map.put(Asset.EVENT_PROP_ASSET_COMMAND_RESPONSE, response);
        EventAdminVerifier.assertLastEvent(m_EventAdmin, Asset.TOPIC_COMMAND_RESPONSE_UPDATED, map);
    }
@ Test public void testPostResponseUpdate ( ) throws ValidationFailedException , IllegalArgumentException , PersistenceFailedException { GetPanTiltResponse response = new GetPanTiltResponse ( ) ; m_SUT . postResponseUpdate ( response ) ; Map < String , Object > map = new HashMap < > ( ) ; map . put ( FactoryDescriptor . EVENT_PROP_OBJ , m_SUT ) ; map . put ( FactoryDescriptor . EVENT_PROP_OBJ_NAME , m_SUT . getName ( ) ) ; map . put ( Asset . EVENT_PROP_ASSET_COMMAND_RESPONSE_TYPE , GetPanTiltResponse . class . getName ( ) ) ; map . put ( Asset . EVENT_PROP_ASSET_COMMAND_RESPONSE , response ) ; EventAdminVerifier . assertLastEvent ( m_EventAdmin , Asset . TOPIC_COMMAND_RESPONSE_UPDATED , map ) ; }
Verify event is posted given the parameters.
Verify event is posted given the parameters .
// replay // verify posted