mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/asset/TestAssetImpl.java
@SuppressWarnings({"rawtypes", "unchecked"})
    @Test
    public final void testSetActiveOnStartUp() throws Exception
    {
        // act
        m_SUT.setActivateOnStartUp(true);

        ArgumentCaptor<Dictionary> props = ArgumentCaptor.forClass(Dictionary.class);
        verify(m_Configuration).update(props.capture());
        assertThat(props.getValue(), rawDictionaryHasEntry(AssetAttributes.CONFIG_PROP_ACTIVATE_ON_STARTUP, true));
        // should be there from before
        assertThat(props.getValue(),
                rawDictionaryHasEntry(AssetAttributes.CONFIG_PROP_PLUGIN_OVERRIDES_POSITION, false));
    }
/**
     * Verify ability to set active on start up property value.
     */
Verify ability to set active on start up property value.
Verify ability to set active on start up property value .
@SuppressWarnings({"rawtypes", "unchecked"})
    @Test
    public final void testSetActiveOnStartUp() throws Exception
    {
        m_SUT.setActivateOnStartUp(true);
        ArgumentCaptor<Dictionary> props = ArgumentCaptor.forClass(Dictionary.class);
        verify(m_Configuration).update(props.capture());
        assertThat(props.getValue(), rawDictionaryHasEntry(AssetAttributes.CONFIG_PROP_ACTIVATE_ON_STARTUP, true));
        assertThat(props.getValue(),
                rawDictionaryHasEntry(AssetAttributes.CONFIG_PROP_PLUGIN_OVERRIDES_POSITION, false));
    }
@ SuppressWarnings ( { "rawtypes" , "unchecked" } ) @ Test public final void testSetActiveOnStartUp ( ) throws Exception { m_SUT . setActivateOnStartUp ( true ) ; ArgumentCaptor < Dictionary > props = ArgumentCaptor . forClass ( Dictionary . class ) ; verify ( m_Configuration ) . update ( props . capture ( ) ) ; assertThat ( props . getValue ( ) , rawDictionaryHasEntry ( AssetAttributes . CONFIG_PROP_ACTIVATE_ON_STARTUP , true ) ) ; assertThat ( props . getValue ( ) , rawDictionaryHasEntry ( AssetAttributes . CONFIG_PROP_PLUGIN_OVERRIDES_POSITION , false ) ) ; }
Verify ability to set active on start up property value.
Verify ability to set active on start up property value .
// act // should be there from before