mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestAddressTranslatorManager.java
@Test
    public void testUnSetAddressTranslator()
    {
        m_SUT.setAddressTranslator(m_AddrTrans1);
        
        assertThat(m_SUT.getAddressTranslator(MyAddr.class.getName()), is(m_AddrTrans1));
        
        m_SUT.unsetAddressTranslator(m_AddrTrans1);
        
        try
        {
            m_SUT.getAddressTranslator(MyAddr.class.getName());
            fail("Expected exception as the translator was just unset and therefore should no longer be available.");
        }
        catch (IllegalArgumentException e)
        {
            //expected
        }
    }
/**
     * Verify that a translator can be unset and therefore no longer available.
     */
Verify that a translator can be unset and therefore no longer available.
Verify that a translator can be unset and therefore no longer available .
@Test
    public void testUnSetAddressTranslator()
    {
        m_SUT.setAddressTranslator(m_AddrTrans1);
        assertThat(m_SUT.getAddressTranslator(MyAddr.class.getName()), is(m_AddrTrans1));
        m_SUT.unsetAddressTranslator(m_AddrTrans1);
        try
        {
            m_SUT.getAddressTranslator(MyAddr.class.getName());
            fail("Expected exception as the translator was just unset and therefore should no longer be available.");
        }
        catch (IllegalArgumentException e)
        {
        }
    }
@ Test public void testUnSetAddressTranslator ( ) { m_SUT . setAddressTranslator ( m_AddrTrans1 ) ; assertThat ( m_SUT . getAddressTranslator ( MyAddr . class . getName ( ) ) , is ( m_AddrTrans1 ) ) ; m_SUT . unsetAddressTranslator ( m_AddrTrans1 ) ; try { m_SUT . getAddressTranslator ( MyAddr . class . getName ( ) ) ; fail ( "Expected exception as the translator was just unset and therefore should no longer be available." ) ; } catch ( IllegalArgumentException e ) { } }
Verify that a translator can be unset and therefore no longer available.
Verify that a translator can be unset and therefore no longer available .
//expected