mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/asset/TestAssetImpl.java
@SuppressWarnings({"rawtypes", "unchecked"})
    @Test
    public final void testSetPluginOverridesPosition() throws Exception
    {
        Dictionary<String, Object> existingProps = new Hashtable<>();
        existingProps.put(AssetAttributes.CONFIG_PROP_ACTIVATE_ON_STARTUP, false);
        when(m_Configuration.getProperties()).thenReturn(existingProps);

        m_SUT.setPluginOverridesPosition(true);

        ArgumentCaptor<Dictionary> props = ArgumentCaptor.forClass(Dictionary.class);
        verify(m_Configuration).update(props.capture());
        assertThat(props.getValue(),
                rawDictionaryHasEntry(AssetAttributes.CONFIG_PROP_PLUGIN_OVERRIDES_POSITION, true));
        // should be there from before
        assertThat(props.getValue(), rawDictionaryHasEntry(AssetAttributes.CONFIG_PROP_ACTIVATE_ON_STARTUP, false));
    }
/**
     * Verify ability to set plug-in overrides position property value.
     */
Verify ability to set plug-in overrides position property value.
Verify ability to set plug - in overrides position property value .
@SuppressWarnings({"rawtypes", "unchecked"})
    @Test
    public final void testSetPluginOverridesPosition() throws Exception
    {
        Dictionary<String, Object> existingProps = new Hashtable<>();
        existingProps.put(AssetAttributes.CONFIG_PROP_ACTIVATE_ON_STARTUP, false);
        when(m_Configuration.getProperties()).thenReturn(existingProps);
        m_SUT.setPluginOverridesPosition(true);
        ArgumentCaptor<Dictionary> props = ArgumentCaptor.forClass(Dictionary.class);
        verify(m_Configuration).update(props.capture());
        assertThat(props.getValue(),
                rawDictionaryHasEntry(AssetAttributes.CONFIG_PROP_PLUGIN_OVERRIDES_POSITION, true));
        assertThat(props.getValue(), rawDictionaryHasEntry(AssetAttributes.CONFIG_PROP_ACTIVATE_ON_STARTUP, false));
    }
@ SuppressWarnings ( { "rawtypes" , "unchecked" } ) @ Test public final void testSetPluginOverridesPosition ( ) throws Exception { Dictionary < String , Object > existingProps = new Hashtable < > ( ) ; existingProps . put ( AssetAttributes . CONFIG_PROP_ACTIVATE_ON_STARTUP , false ) ; when ( m_Configuration . getProperties ( ) ) . thenReturn ( existingProps ) ; m_SUT . setPluginOverridesPosition ( true ) ; ArgumentCaptor < Dictionary > props = ArgumentCaptor . forClass ( Dictionary . class ) ; verify ( m_Configuration ) . update ( props . capture ( ) ) ; assertThat ( props . getValue ( ) , rawDictionaryHasEntry ( AssetAttributes . CONFIG_PROP_PLUGIN_OVERRIDES_POSITION , true ) ) ; assertThat ( props . getValue ( ) , rawDictionaryHasEntry ( AssetAttributes . CONFIG_PROP_ACTIVATE_ON_STARTUP , false ) ) ; }
Verify ability to set plug-in overrides position property value.
Verify ability to set plug - in overrides position property value .
// should be there from before