mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestCustomCommsService.java
public void testGetPhysicalLinkFactoryTypes() throws InvalidSyntaxException
    {
        //get the custom comms service
        CustomCommsService customCommsService = ServiceUtils.getService(m_Context, CustomCommsService.class);
        
        //get the device factories for physical link layers
        Set<PhysicalLinkFactory> factories = customCommsService.getPhysicalLinkFactories();
        
        //check that the example physical link factory is returned
        assertThat("Physical link factories not found", factories.size() > 1);
        
        //gather all the physical link product types
        List<String> productTypes = new ArrayList<String>();
        for (PhysicalLinkFactory factory : factories)
        {
            productTypes.add(factory.getProductType());
        }
        assertThat(productTypes, hasItem(ExamplePhysicalLink.class.getName()));
    }
/**
     * Test getting the known physical link factories.
     * Verify that the expected types are returned.
     */
Test getting the known physical link factories.
Verify that the expected types are returned.
Test getting the known physical link factories . Verify that the expected types are returned .
public void testGetPhysicalLinkFactoryTypes() throws InvalidSyntaxException
    {
        CustomCommsService customCommsService = ServiceUtils.getService(m_Context, CustomCommsService.class);
        Set<PhysicalLinkFactory> factories = customCommsService.getPhysicalLinkFactories();
        assertThat("Physical link factories not found", factories.size() > 1);
        List<String> productTypes = new ArrayList<String>();
        for (PhysicalLinkFactory factory : factories)
        {
            productTypes.add(factory.getProductType());
        }
        assertThat(productTypes, hasItem(ExamplePhysicalLink.class.getName()));
    }
public void testGetPhysicalLinkFactoryTypes ( ) throws InvalidSyntaxException { CustomCommsService customCommsService = ServiceUtils . getService ( m_Context , CustomCommsService . class ) ; Set < PhysicalLinkFactory > factories = customCommsService . getPhysicalLinkFactories ( ) ; assertThat ( "Physical link factories not found" , factories . size ( ) > 1 ) ; List < String > productTypes = new ArrayList < String > ( ) ; for ( PhysicalLinkFactory factory : factories ) { productTypes . add ( factory . getProductType ( ) ) ; } assertThat ( productTypes , hasItem ( ExamplePhysicalLink . class . getName ( ) ) ) ; }
Test getting the known physical link factories.
Test getting the known physical link factories .
//get the custom comms service //get the device factories for physical link layers //check that the example physical link factory is returned //gather all the physical link product types