mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/TestPrepFor2ndRun.java
@Test
    public void testCreateRemoteChannels()
    {
        RemoteChannelLookup remoteChannelLookup = IntegrationTestRunner.getService(RemoteChannelLookup.class);
        
        remoteChannelLookup.syncTransportChannel("test", "local", "remote", 500, true);
        remoteChannelLookup.syncTransportChannel("test", "local2", "remote2", 500);
        remoteChannelLookup.syncTransportChannel("test", "local3", "remote3", 500);
        remoteChannelLookup.syncTransportChannel("test2", "local-A", "remote-B", 600);
        remoteChannelLookup.syncTransportChannel("test3", "local-B", "remote-C", 700, false);
        RemoteChannel channelToRemove = remoteChannelLookup.syncTransportChannel("to remove", "local", "remote", 500);
        
        // at least one that changes id, verify on 2nd run still moved
        remoteChannelLookup.syncTransportChannel("test", "local2", "remote2", 600);
        
        // at least one that is removed, verify on 2nd run still gone
        remoteChannelLookup.removeChannel(channelToRemove);
        
        // just a sanity check, verified elsewhere
        assertThat(remoteChannelLookup.getChannels(500).size(), is(2));
        assertThat(remoteChannelLookup.getChannels(600).size(), is(2));
        
        // Verify that the channel that will not be persisted exists
        assertThat(remoteChannelLookup.getChannels(700).size(), is(1));
    }
/**
     * Create some remote channels that will be tested on the 2nd run by {@link 
     * mil.dod.th.ose.controller.integration.remote.TestPersistedRemoteChannelLookup}.
     */
Create some remote channels that will be tested on the 2nd run by {@link
mil.dod.th.ose.controller.integration.remote.TestPersistedRemoteChannelLookup}.
Create some remote channels that will be tested on the 2nd run by { @link mil . dod . th . ose . controller . integration . remote . TestPersistedRemoteChannelLookup } .
@Test
    public void testCreateRemoteChannels()
    {
        RemoteChannelLookup remoteChannelLookup = IntegrationTestRunner.getService(RemoteChannelLookup.class);
        remoteChannelLookup.syncTransportChannel("test", "local", "remote", 500, true);
        remoteChannelLookup.syncTransportChannel("test", "local2", "remote2", 500);
        remoteChannelLookup.syncTransportChannel("test", "local3", "remote3", 500);
        remoteChannelLookup.syncTransportChannel("test2", "local-A", "remote-B", 600);
        remoteChannelLookup.syncTransportChannel("test3", "local-B", "remote-C", 700, false);
        RemoteChannel channelToRemove = remoteChannelLookup.syncTransportChannel("to remove", "local", "remote", 500);
        remoteChannelLookup.syncTransportChannel("test", "local2", "remote2", 600);
        remoteChannelLookup.removeChannel(channelToRemove);
        assertThat(remoteChannelLookup.getChannels(500).size(), is(2));
        assertThat(remoteChannelLookup.getChannels(600).size(), is(2));
        assertThat(remoteChannelLookup.getChannels(700).size(), is(1));
    }
@ Test public void testCreateRemoteChannels ( ) { RemoteChannelLookup remoteChannelLookup = IntegrationTestRunner . getService ( RemoteChannelLookup . class ) ; remoteChannelLookup . syncTransportChannel ( "test" , "local" , "remote" , 500 , true ) ; remoteChannelLookup . syncTransportChannel ( "test" , "local2" , "remote2" , 500 ) ; remoteChannelLookup . syncTransportChannel ( "test" , "local3" , "remote3" , 500 ) ; remoteChannelLookup . syncTransportChannel ( "test2" , "local-A" , "remote-B" , 600 ) ; remoteChannelLookup . syncTransportChannel ( "test3" , "local-B" , "remote-C" , 700 , false ) ; RemoteChannel channelToRemove = remoteChannelLookup . syncTransportChannel ( "to remove" , "local" , "remote" , 500 ) ; remoteChannelLookup . syncTransportChannel ( "test" , "local2" , "remote2" , 600 ) ; remoteChannelLookup . removeChannel ( channelToRemove ) ; assertThat ( remoteChannelLookup . getChannels ( 500 ) . size ( ) , is ( 2 ) ) ; assertThat ( remoteChannelLookup . getChannels ( 600 ) . size ( ) , is ( 2 ) ) ; assertThat ( remoteChannelLookup . getChannels ( 700 ) . size ( ) , is ( 1 ) ) ; }
Create some remote channels that will be tested on the 2nd run by {@link
 mil.dod.th.ose.controller.integration.remote.TestPersistedRemoteChannelLookup}.
Create some remote channels that will be tested on the 2nd run by { @link mil . dod . th . ose . controller . integration . remote . TestPersistedRemoteChannelLookup } .
// at least one that changes id, verify on 2nd run still moved // at least one that is removed, verify on 2nd run still gone // just a sanity check, verified elsewhere // Verify that the channel that will not be persisted exists