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

        //get the device factories for link layers
        Set<LinkLayerFactory> factories = customCommsService.getLinkLayerFactories();
        
        //check that the example link layer is returned
        assertThat("Link layer factories not found", factories.size() >= 1);
        List<String> productTypes = new ArrayList<>();
        for (LinkLayerFactory factory : factories)
        {
            productTypes.add(factory.getProductType());
        }
        assertThat(productTypes, hasItem(ExampleLinkLayer.class.getName()));
    }
/**
     * Test getting the known link layer factories.
     * Verify that the expected types are returned.
     */
Test getting the known link layer factories.
Verify that the expected types are returned.
Test getting the known link layer factories . Verify that the expected types are returned .
public void testGetLinkLayerFactoryTypes() throws InvalidSyntaxException
    {
        CustomCommsService customCommsService = ServiceUtils.getService(m_Context, CustomCommsService.class);
        Set<LinkLayerFactory> factories = customCommsService.getLinkLayerFactories();
        assertThat("Link layer factories not found", factories.size() >= 1);
        List<String> productTypes = new ArrayList<>();
        for (LinkLayerFactory factory : factories)
        {
            productTypes.add(factory.getProductType());
        }
        assertThat(productTypes, hasItem(ExampleLinkLayer.class.getName()));
    }
public void testGetLinkLayerFactoryTypes ( ) throws InvalidSyntaxException { CustomCommsService customCommsService = ServiceUtils . getService ( m_Context , CustomCommsService . class ) ; Set < LinkLayerFactory > factories = customCommsService . getLinkLayerFactories ( ) ; assertThat ( "Link layer factories not found" , factories . size ( ) >= 1 ) ; List < String > productTypes = new ArrayList < > ( ) ; for ( LinkLayerFactory factory : factories ) { productTypes . add ( factory . getProductType ( ) ) ; } assertThat ( productTypes , hasItem ( ExampleLinkLayer . class . getName ( ) ) ) ; }
Test getting the known link layer factories.
Test getting the known link layer factories .
//get the custom comms service //get the device factories for link layers //check that the example link layer is returned