mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/asset/TestAssetGetCommandMgrImpl.java
@Test
    public void testCommandResponseHandlerNullSystemLookup()
    {
        AsyncCommandResponseEventHandler eventHandler = m_SUT.new AsyncCommandResponseEventHandler();
        
        GetVersionResponse versionResponse = new GetVersionResponse(null, null, "version");
        Map<String, Object> map = new HashMap<>();
        map.put(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, CONTROLLER_ID);
        map.put(FactoryDescriptor.EVENT_PROP_OBJ_UUID, UUID.randomUUID().toString());
        map.put(Asset.EVENT_PROP_ASSET_COMMAND_RESPONSE_TYPE, GetVersionResponse.class.getName());
        map.put(Asset.EVENT_PROP_ASSET_COMMAND_RESPONSE, versionResponse);
        
        Event event = new Event("topic", map);
        
        eventHandler.handleEvent(event);
        
        //verify no interactions
        verify(m_CommandConverter, never()).getCommandResponseEnumFromClassName(anyString());
    }
/**
     * Verify no action take if the system collection is null when a command updated response is received.
     */
Verify no action take if the system collection is null when a command updated response is received.
Verify no action take if the system collection is null when a command updated response is received .
@Test
    public void testCommandResponseHandlerNullSystemLookup()
    {
        AsyncCommandResponseEventHandler eventHandler = m_SUT.new AsyncCommandResponseEventHandler();
        GetVersionResponse versionResponse = new GetVersionResponse(null, null, "version");
        Map<String, Object> map = new HashMap<>();
        map.put(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, CONTROLLER_ID);
        map.put(FactoryDescriptor.EVENT_PROP_OBJ_UUID, UUID.randomUUID().toString());
        map.put(Asset.EVENT_PROP_ASSET_COMMAND_RESPONSE_TYPE, GetVersionResponse.class.getName());
        map.put(Asset.EVENT_PROP_ASSET_COMMAND_RESPONSE, versionResponse);
        Event event = new Event("topic", map);
        eventHandler.handleEvent(event);
        verify(m_CommandConverter, never()).getCommandResponseEnumFromClassName(anyString());
    }
@ Test public void testCommandResponseHandlerNullSystemLookup ( ) { AsyncCommandResponseEventHandler eventHandler = m_SUT . new AsyncCommandResponseEventHandler ( ) ; GetVersionResponse versionResponse = new GetVersionResponse ( null , null , "version" ) ; Map < String , Object > map = new HashMap < > ( ) ; map . put ( RemoteConstants . REMOTE_EVENT_PROP_CONTROLLER_ID , CONTROLLER_ID ) ; map . put ( FactoryDescriptor . EVENT_PROP_OBJ_UUID , UUID . randomUUID ( ) . toString ( ) ) ; map . put ( Asset . EVENT_PROP_ASSET_COMMAND_RESPONSE_TYPE , GetVersionResponse . class . getName ( ) ) ; map . put ( Asset . EVENT_PROP_ASSET_COMMAND_RESPONSE , versionResponse ) ; Event event = new Event ( "topic" , map ) ; eventHandler . handleEvent ( event ) ; verify ( m_CommandConverter , never ( ) ) . getCommandResponseEnumFromClassName ( anyString ( ) ) ; }
Verify no action take if the system collection is null when a command updated response is received.
Verify no action take if the system collection is null when a command updated response is received .
//verify no interactions