mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/TestRemoteSettingsImpl.java
@Test
    public void testActivateWithPreviousProp()
    {
        m_Props = new HashMap<String, Object>();
        m_Props.put(RemoteSettings.KEY_ENCRYPTION_MODE, EncryptionMode.AES_ECDH_ECDSA);
        m_Props.put(RemoteSettings.KEY_PREVENT_SLEEP_MODE, true);
        m_SUT.activate(m_Context, m_Props);
        
        //verify
        assertThat(m_SUT.getEncryptionMode(), is(EncryptionMode.AES_ECDH_ECDSA));
        assertThat(m_SUT.isPreventSleepModeEnabled(), is(true));
    }
/**
     * Test activation if there is a previous config property. 
     */
Test activation if there is a previous config property.
Test activation if there is a previous config property .
@Test
    public void testActivateWithPreviousProp()
    {
        m_Props = new HashMap<String, Object>();
        m_Props.put(RemoteSettings.KEY_ENCRYPTION_MODE, EncryptionMode.AES_ECDH_ECDSA);
        m_Props.put(RemoteSettings.KEY_PREVENT_SLEEP_MODE, true);
        m_SUT.activate(m_Context, m_Props);
        assertThat(m_SUT.getEncryptionMode(), is(EncryptionMode.AES_ECDH_ECDSA));
        assertThat(m_SUT.isPreventSleepModeEnabled(), is(true));
    }
@ Test public void testActivateWithPreviousProp ( ) { m_Props = new HashMap < String , Object > ( ) ; m_Props . put ( RemoteSettings . KEY_ENCRYPTION_MODE , EncryptionMode . AES_ECDH_ECDSA ) ; m_Props . put ( RemoteSettings . KEY_PREVENT_SLEEP_MODE , true ) ; m_SUT . activate ( m_Context , m_Props ) ; assertThat ( m_SUT . getEncryptionMode ( ) , is ( EncryptionMode . AES_ECDH_ECDSA ) ) ; assertThat ( m_SUT . isPreventSleepModeEnabled ( ) , is ( true ) ) ; }
Test activation if there is a previous config property.
Test activation if there is a previous config property .
//verify