mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestCustomCommsService.java
public void testGetPhysicalCaps() throws CCommException, UnmarshalException
    {
        CustomCommsService customCommsService = ServiceUtils.getService(m_Context, CustomCommsService.class);
        
        Set<PhysicalLinkFactory> links = customCommsService.getPhysicalLinkFactories();

        //list to add the desired descriptor to
        List<String>descriptions = new ArrayList<>();
        for (PhysicalLinkFactory factory : links)
        {
            //check example physical links properties
            if (factory.getProductName().equals("ExamplePhysicalLink"))
            {
                descriptions.add(factory.getCapabilities().getDescription());
            }
        }
        assertThat(descriptions, hasItem("An example physical link"));
    }
/**
     * Test physical link factory capabilities.
     */
Test physical link factory capabilities.
Test physical link factory capabilities .
public void testGetPhysicalCaps() throws CCommException, UnmarshalException
    {
        CustomCommsService customCommsService = ServiceUtils.getService(m_Context, CustomCommsService.class);
        Set<PhysicalLinkFactory> links = customCommsService.getPhysicalLinkFactories();
        List<String>descriptions = new ArrayList<>();
        for (PhysicalLinkFactory factory : links)
        {
            if (factory.getProductName().equals("ExamplePhysicalLink"))
            {
                descriptions.add(factory.getCapabilities().getDescription());
            }
        }
        assertThat(descriptions, hasItem("An example physical link"));
    }
public void testGetPhysicalCaps ( ) throws CCommException , UnmarshalException { CustomCommsService customCommsService = ServiceUtils . getService ( m_Context , CustomCommsService . class ) ; Set < PhysicalLinkFactory > links = customCommsService . getPhysicalLinkFactories ( ) ; List < String > descriptions = new ArrayList < > ( ) ; for ( PhysicalLinkFactory factory : links ) { if ( factory . getProductName ( ) . equals ( "ExamplePhysicalLink" ) ) { descriptions . add ( factory . getCapabilities ( ) . getDescription ( ) ) ; } } assertThat ( descriptions , hasItem ( "An example physical link" ) ) ; }
Test physical link factory capabilities.
Test physical link factory capabilities .
//list to add the desired descriptor to //check example physical links properties