mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestCustomCommsService.java
public void testGetTransportLayerFactoryTypes() throws InvalidSyntaxException
    {
        //get the custom comms service
        CustomCommsService customCommsService = ServiceUtils.getService(m_Context, CustomCommsService.class);

         //get the device factories for transport layers
        Set<TransportLayerFactory> factories = 
                customCommsService.getTransportLayerFactories();
        
        //check that the example physical link factory is returned
        assertThat("Transport layer factories not found", factories.size() > 1);
        
        //gather all the product names
        List<String> productTypes = new ArrayList<>();
        for (TransportLayerFactory factory : factories)
        {
            productTypes.add(factory.getProductType());
        }
        assertThat(productTypes, hasItem(EchoTransport.class.getName()));
        assertThat(productTypes, hasItem(DirectTransport.class.getName()));
    }
/**
     * Test getting the known transport layer factories.
     * Verify that the expected types are returned.
     */
Test getting the known transport layer factories.
Verify that the expected types are returned.
Test getting the known transport layer factories . Verify that the expected types are returned .
public void testGetTransportLayerFactoryTypes() throws InvalidSyntaxException
    {
        CustomCommsService customCommsService = ServiceUtils.getService(m_Context, CustomCommsService.class);
        Set<TransportLayerFactory> factories = 
                customCommsService.getTransportLayerFactories();
        assertThat("Transport layer factories not found", factories.size() > 1);
        List<String> productTypes = new ArrayList<>();
        for (TransportLayerFactory factory : factories)
        {
            productTypes.add(factory.getProductType());
        }
        assertThat(productTypes, hasItem(EchoTransport.class.getName()));
        assertThat(productTypes, hasItem(DirectTransport.class.getName()));
    }
public void testGetTransportLayerFactoryTypes ( ) throws InvalidSyntaxException { CustomCommsService customCommsService = ServiceUtils . getService ( m_Context , CustomCommsService . class ) ; Set < TransportLayerFactory > factories = customCommsService . getTransportLayerFactories ( ) ; assertThat ( "Transport layer factories not found" , factories . size ( ) > 1 ) ; List < String > productTypes = new ArrayList < > ( ) ; for ( TransportLayerFactory factory : factories ) { productTypes . add ( factory . getProductType ( ) ) ; } assertThat ( productTypes , hasItem ( EchoTransport . class . getName ( ) ) ) ; assertThat ( productTypes , hasItem ( DirectTransport . class . getName ( ) ) ) ; }
Test getting the known transport layer factories.
Test getting the known transport layer factories .
//get the custom comms service //get the device factories for transport layers //check that the example physical link factory is returned //gather all the product names