mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestAddressTranslatorManager.java
@Test
    public void testSetAddressTranslatorDuplicate()
    {
        //this should work
        m_SUT.setAddressTranslator(m_AddrTrans1);
        
        //this shouldn't error, but the translator won't actually be saved
        m_SUT.setAddressTranslator(m_AddrTrans2);
        
        assertThat(m_SUT.getAddressTranslator(MyAddr.class.getName()), is(m_AddrTrans1));
    }
/**
     * Verify if a translator is already known for a type that it is not registered.
     */
Verify if a translator is already known for a type that it is not registered.
Verify if a translator is already known for a type that it is not registered .
@Test
    public void testSetAddressTranslatorDuplicate()
    {
        m_SUT.setAddressTranslator(m_AddrTrans1);
        m_SUT.setAddressTranslator(m_AddrTrans2);
        assertThat(m_SUT.getAddressTranslator(MyAddr.class.getName()), is(m_AddrTrans1));
    }
@ Test public void testSetAddressTranslatorDuplicate ( ) { m_SUT . setAddressTranslator ( m_AddrTrans1 ) ; m_SUT . setAddressTranslator ( m_AddrTrans2 ) ; assertThat ( m_SUT . getAddressTranslator ( MyAddr . class . getName ( ) ) , is ( m_AddrTrans1 ) ) ; }
Verify if a translator is already known for a type that it is not registered.
Verify if a translator is already known for a type that it is not registered .
//this should work //this shouldn't error, but the translator won't actually be saved