mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/asset/TestAssetImpl.java
@Test
    public void testExecuteGetPositionCommandNoOverridePos()
            throws CommandExecutionException, ValidationFailedException, InterruptedException, IOException
    {
        GetPositionCommand command = mock(GetPositionCommand.class);
        GetPositionResponse response = (GetPositionResponse)m_SUT.executeCommand(command);

        verify(m_Proxy, never()).onExecuteCommand(command);
        verify(m_WakeLock).activate();
        verify(m_WakeLock).cancel();

        Map<String, Object> props = new HashMap<>();
        props.put(Asset.EVENT_PROP_ASSET_COMMAND_RESPONSE_TYPE, response.getClass().getName());
        props.put(Asset.EVENT_PROP_ASSET_COMMAND_RESPONSE, response);
        EventAdminVerifier.assertLastEvent(m_EventAdmin, Asset.TOPIC_COMMAND_RESPONSE, props);

        verifyCoordsWithEllipse(response.getLocation(), 100d, 10d, 5d, 1d, 2d, 90d);
        verifyOrientation(response.getOrientation(), 100d, 90d, 45d);
    }
/**
     * Verify execute getposition command works as intended when override position is set to false.
     */
Verify execute getposition command works as intended when override position is set to false.
Verify execute getposition command works as intended when override position is set to false .
@Test
    public void testExecuteGetPositionCommandNoOverridePos()
            throws CommandExecutionException, ValidationFailedException, InterruptedException, IOException
    {
        GetPositionCommand command = mock(GetPositionCommand.class);
        GetPositionResponse response = (GetPositionResponse)m_SUT.executeCommand(command);
        verify(m_Proxy, never()).onExecuteCommand(command);
        verify(m_WakeLock).activate();
        verify(m_WakeLock).cancel();
        Map<String, Object> props = new HashMap<>();
        props.put(Asset.EVENT_PROP_ASSET_COMMAND_RESPONSE_TYPE, response.getClass().getName());
        props.put(Asset.EVENT_PROP_ASSET_COMMAND_RESPONSE, response);
        EventAdminVerifier.assertLastEvent(m_EventAdmin, Asset.TOPIC_COMMAND_RESPONSE, props);
        verifyCoordsWithEllipse(response.getLocation(), 100d, 10d, 5d, 1d, 2d, 90d);
        verifyOrientation(response.getOrientation(), 100d, 90d, 45d);
    }
@ Test public void testExecuteGetPositionCommandNoOverridePos ( ) throws CommandExecutionException , ValidationFailedException , InterruptedException , IOException { GetPositionCommand command = mock ( GetPositionCommand . class ) ; GetPositionResponse response = ( GetPositionResponse ) m_SUT . executeCommand ( command ) ; verify ( m_Proxy , never ( ) ) . onExecuteCommand ( command ) ; verify ( m_WakeLock ) . activate ( ) ; verify ( m_WakeLock ) . cancel ( ) ; Map < String , Object > props = new HashMap < > ( ) ; props . put ( Asset . EVENT_PROP_ASSET_COMMAND_RESPONSE_TYPE , response . getClass ( ) . getName ( ) ) ; props . put ( Asset . EVENT_PROP_ASSET_COMMAND_RESPONSE , response ) ; EventAdminVerifier . assertLastEvent ( m_EventAdmin , Asset . TOPIC_COMMAND_RESPONSE , props ) ; verifyCoordsWithEllipse ( response . getLocation ( ) , 100d , 10d , 5d , 1d , 2d , 90d ) ; verifyOrientation ( response . getOrientation ( ) , 100d , 90d , 45d ) ; }
Verify execute getposition command works as intended when override position is set to false.
Verify execute getposition command works as intended when override position is set to false .