mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/remote/TestRemoteChannelLookup.java
@Test
    public void testSyncing()
    {
        RemoteChannelLookup remoteChannelLookup = IntegrationTestRunner.getService(RemoteChannelLookup.class);
        
        remoteChannelLookup.syncTransportChannel("test", "local", "remote", 100);
        
        assertThat(remoteChannelLookup.getChannels(100).size(), is(1));
        
        // sync to new id
        remoteChannelLookup.syncTransportChannel("test", "local", "remote", 200);
        
        assertThat(remoteChannelLookup.getChannels(100).size(), is(0));
        assertThat(remoteChannelLookup.getChannels(200).size(), is(1)); 
    }
/**
     * Verify a channel can be created/synced and then retrieved.
     * 
     * Verify syncing to new system id will remove reference to old one.
     * 
     * TODO: TH-644 - update once a sync client socket method can be called even if endpoint is there
     */
Verify a channel can be created/synced and then retrieved.

Verify syncing to new system id will remove reference to old one.

TH-644 - update once a sync client socket method can be called even if endpoint is there
Verify a channel can be created / synced and then retrieved . Verify syncing to new system id will remove reference to old one . TH - 644 - update once a sync client socket method can be called even if endpoint is there
@Test
    public void testSyncing()
    {
        RemoteChannelLookup remoteChannelLookup = IntegrationTestRunner.getService(RemoteChannelLookup.class);
        remoteChannelLookup.syncTransportChannel("test", "local", "remote", 100);
        assertThat(remoteChannelLookup.getChannels(100).size(), is(1));
        remoteChannelLookup.syncTransportChannel("test", "local", "remote", 200);
        assertThat(remoteChannelLookup.getChannels(100).size(), is(0));
        assertThat(remoteChannelLookup.getChannels(200).size(), is(1)); 
    }
@ Test public void testSyncing ( ) { RemoteChannelLookup remoteChannelLookup = IntegrationTestRunner . getService ( RemoteChannelLookup . class ) ; remoteChannelLookup . syncTransportChannel ( "test" , "local" , "remote" , 100 ) ; assertThat ( remoteChannelLookup . getChannels ( 100 ) . size ( ) , is ( 1 ) ) ; remoteChannelLookup . syncTransportChannel ( "test" , "local" , "remote" , 200 ) ; assertThat ( remoteChannelLookup . getChannels ( 100 ) . size ( ) , is ( 0 ) ) ; assertThat ( remoteChannelLookup . getChannels ( 200 ) . size ( ) , is ( 1 ) ) ; }
Verify a channel can be created/synced and then retrieved.
Verify a channel can be created / synced and then retrieved .
// sync to new id