mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/TestRemoteSettingsImpl.java
@Test
    public void testModified()
    {
        m_SUT.activate(m_Context, m_Props);
        m_Props.put("logRemoteMessages", true);
        m_Props.put("encryptionMode", "AES_ECDH_ECDSA");
        m_Props.put("maxMsgSizeInBytes", 1L);
        m_SUT.modified(m_Props);
        
        assertThat(m_SUT.isLogRemoteMessagesEnabled(), is(true));
        assertThat(m_SUT.getEncryptionMode(), is(EncryptionMode.AES_ECDH_ECDSA));
        assertThat(m_SUT.getMaxMessageSize(), is(1L));
    }
/**
     * Test the properties are correctly set when modified
     */
Test the properties are correctly set when modified
Test the properties are correctly set when modified
@Test
    public void testModified()
    {
        m_SUT.activate(m_Context, m_Props);
        m_Props.put("logRemoteMessages", true);
        m_Props.put("encryptionMode", "AES_ECDH_ECDSA");
        m_Props.put("maxMsgSizeInBytes", 1L);
        m_SUT.modified(m_Props);
        assertThat(m_SUT.isLogRemoteMessagesEnabled(), is(true));
        assertThat(m_SUT.getEncryptionMode(), is(EncryptionMode.AES_ECDH_ECDSA));
        assertThat(m_SUT.getMaxMessageSize(), is(1L));
    }
@ Test public void testModified ( ) { m_SUT . activate ( m_Context , m_Props ) ; m_Props . put ( "logRemoteMessages" , true ) ; m_Props . put ( "encryptionMode" , "AES_ECDH_ECDSA" ) ; m_Props . put ( "maxMsgSizeInBytes" , 1L ) ; m_SUT . modified ( m_Props ) ; assertThat ( m_SUT . isLogRemoteMessagesEnabled ( ) , is ( true ) ) ; assertThat ( m_SUT . getEncryptionMode ( ) , is ( EncryptionMode . AES_ECDH_ECDSA ) ) ; assertThat ( m_SUT . getMaxMessageSize ( ) , is ( 1L ) ) ; }
Test the properties are correctly set when modified
Test the properties are correctly set when modified