mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/asset/TestAssetImpl.java
@Test
    public void testExecuteSetPositionCommandNoLocationOrOrientation()
            throws CommandExecutionException, ValidationFailedException, InterruptedException, IOException
    {
        SetPositionCommand command = new SetPositionCommand();
        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, SetPositionResponse.class.getName());
        props.put(Asset.EVENT_PROP_ASSET_COMMAND_RESPONSE, notNullValue());
        EventAdminVerifier.assertLastEvent(m_EventAdmin, Asset.TOPIC_COMMAND_RESPONSE, props);

        Coordinates setCoords = getCoordsFromCommand(null);
        verifyCoordsWithEllipse(setCoords, 100d, 10d, 5d, 1d, 2d, 90d);

        Orientation setOrient = getOrientationFromCommand(null);
        verifyOrientation(setOrient, 100d, 90d, 45d);
    }
/**
     * Verify execute {@link SetPositionCommand} with no location or orientation that the position stays unaltered.
     */
Verify execute  SetPositionCommand with no location or orientation that the position stays unaltered.
Verify execute SetPositionCommand with no location or orientation that the position stays unaltered .
@Test
    public void testExecuteSetPositionCommandNoLocationOrOrientation()
            throws CommandExecutionException, ValidationFailedException, InterruptedException, IOException
    {
        SetPositionCommand command = new SetPositionCommand();
        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, SetPositionResponse.class.getName());
        props.put(Asset.EVENT_PROP_ASSET_COMMAND_RESPONSE, notNullValue());
        EventAdminVerifier.assertLastEvent(m_EventAdmin, Asset.TOPIC_COMMAND_RESPONSE, props);
        Coordinates setCoords = getCoordsFromCommand(null);
        verifyCoordsWithEllipse(setCoords, 100d, 10d, 5d, 1d, 2d, 90d);
        Orientation setOrient = getOrientationFromCommand(null);
        verifyOrientation(setOrient, 100d, 90d, 45d);
    }
@ Test public void testExecuteSetPositionCommandNoLocationOrOrientation ( ) throws CommandExecutionException , ValidationFailedException , InterruptedException , IOException { SetPositionCommand command = new SetPositionCommand ( ) ; 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 , SetPositionResponse . class . getName ( ) ) ; props . put ( Asset . EVENT_PROP_ASSET_COMMAND_RESPONSE , notNullValue ( ) ) ; EventAdminVerifier . assertLastEvent ( m_EventAdmin , Asset . TOPIC_COMMAND_RESPONSE , props ) ; Coordinates setCoords = getCoordsFromCommand ( null ) ; verifyCoordsWithEllipse ( setCoords , 100d , 10d , 5d , 1d , 2d , 90d ) ; Orientation setOrient = getOrientationFromCommand ( null ) ; verifyOrientation ( setOrient , 100d , 90d , 45d ) ; }
Verify execute {@link SetPositionCommand} with no location or orientation that the position stays unaltered.
Verify execute { @link SetPositionCommand } with no location or orientation that the position stays unaltered .