mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestCustomCommsServiceImpl_Transport.java
@Test
    public void testGetTransportLayers() 
        throws CCommException, IOException, InterruptedException, IllegalArgumentException, IllegalStateException, 
            FactoryException, FactoryObjectInformationException
    {
        //reg actions
        Set<TransportLayerInternal> transLinks = new HashSet<>();
        transLinks.add(m_TransInternal);
        when(m_TransRegistry.getObjects()).thenReturn(transLinks);
        
        assertThat(m_SUT.getTransportLayers().size(), is(1));
        
        verify(m_TransRegistry).getObjects();
    }
/**
     * Tests that getTransportLayers returns all created transport layers.
     */
Tests that getTransportLayers returns all created transport layers.
Tests that getTransportLayers returns all created transport layers .
@Test
    public void testGetTransportLayers() 
        throws CCommException, IOException, InterruptedException, IllegalArgumentException, IllegalStateException, 
            FactoryException, FactoryObjectInformationException
    {
        Set<TransportLayerInternal> transLinks = new HashSet<>();
        transLinks.add(m_TransInternal);
        when(m_TransRegistry.getObjects()).thenReturn(transLinks);
        assertThat(m_SUT.getTransportLayers().size(), is(1));
        verify(m_TransRegistry).getObjects();
    }
@ Test public void testGetTransportLayers ( ) throws CCommException , IOException , InterruptedException , IllegalArgumentException , IllegalStateException , FactoryException , FactoryObjectInformationException { Set < TransportLayerInternal > transLinks = new HashSet < > ( ) ; transLinks . add ( m_TransInternal ) ; when ( m_TransRegistry . getObjects ( ) ) . thenReturn ( transLinks ) ; assertThat ( m_SUT . getTransportLayers ( ) . size ( ) , is ( 1 ) ) ; verify ( m_TransRegistry ) . getObjects ( ) ; }
Tests that getTransportLayers returns all created transport layers.
Tests that getTransportLayers returns all created transport layers .
//reg actions