mil.dod.th.remote.client/test/mil/dod/th/remote/client/impl/TestMessageSenderServiceImpl.java
@Test
    public void testAddDuplicateRemoteChannel()
    {
        m_SUT.addRemoteChannel(DEST_ID, m_OutStream, m_ChannelCallback);

        try
        {
            m_SUT.addRemoteChannel(DEST_ID, m_OutStream, m_ChannelCallback);
            fail("addRemoteChannel should throw IllegalStateException");
        }
        catch (IllegalStateException e)
        {
            // Expected
        }
    }
/**
     * Verify that remote channel cannot be added if one already exists for the given destination ID.
     */
Verify that remote channel cannot be added if one already exists for the given destination ID.
Verify that remote channel cannot be added if one already exists for the given destination ID .
@Test
    public void testAddDuplicateRemoteChannel()
    {
        m_SUT.addRemoteChannel(DEST_ID, m_OutStream, m_ChannelCallback);
        try
        {
            m_SUT.addRemoteChannel(DEST_ID, m_OutStream, m_ChannelCallback);
            fail("addRemoteChannel should throw IllegalStateException");
        }
        catch (IllegalStateException e)
        {
        }
    }
@ Test public void testAddDuplicateRemoteChannel ( ) { m_SUT . addRemoteChannel ( DEST_ID , m_OutStream , m_ChannelCallback ) ; try { m_SUT . addRemoteChannel ( DEST_ID , m_OutStream , m_ChannelCallback ) ; fail ( "addRemoteChannel should throw IllegalStateException" ) ; } catch ( IllegalStateException e ) { } }
Verify that remote channel cannot be added if one already exists for the given destination ID.
Verify that remote channel cannot be added if one already exists for the given destination ID .
// Expected