mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestCustomCommsNamespace.java
@Test
    public void testGetLayersPhysicalLink() throws IOException, InterruptedException
    {
        //---Get the list of layers of physical link type and verify both physical links are in it---
        List<FactoryObjectInfo> infoList = CustomCommsNamespaceUtils.getLayersByType(socket, CommType.PhysicalLink);
        
        List<SharedMessages.UUID> uuidList = new ArrayList<SharedMessages.UUID>();
        List<String> pidList = new ArrayList<String>();
        
        for (FactoryObjectInfo factoryObjectInfo : infoList)
        {
            uuidList.add(factoryObjectInfo.getUuid());            
            pidList.add(factoryObjectInfo.getPid());
        }
        assertThat(uuidList, hasItems(pLinkUuid, pLinkUuid2));
        assertThat(pidList, hasItems(pLinkPid, pLinkPid2));
    }
/**
     * Verify the system can remotely get the layers of physical link type.
     */
Verify the system can remotely get the layers of physical link type.
Verify the system can remotely get the layers of physical link type .
@Test
    public void testGetLayersPhysicalLink() throws IOException, InterruptedException
    {
        List<FactoryObjectInfo> infoList = CustomCommsNamespaceUtils.getLayersByType(socket, CommType.PhysicalLink);
        List<SharedMessages.UUID> uuidList = new ArrayList<SharedMessages.UUID>();
        List<String> pidList = new ArrayList<String>();
        for (FactoryObjectInfo factoryObjectInfo : infoList)
        {
            uuidList.add(factoryObjectInfo.getUuid());            
            pidList.add(factoryObjectInfo.getPid());
        }
        assertThat(uuidList, hasItems(pLinkUuid, pLinkUuid2));
        assertThat(pidList, hasItems(pLinkPid, pLinkPid2));
    }
@ Test public void testGetLayersPhysicalLink ( ) throws IOException , InterruptedException { List < FactoryObjectInfo > infoList = CustomCommsNamespaceUtils . getLayersByType ( socket , CommType . PhysicalLink ) ; List < SharedMessages . UUID > uuidList = new ArrayList < SharedMessages . UUID > ( ) ; List < String > pidList = new ArrayList < String > ( ) ; for ( FactoryObjectInfo factoryObjectInfo : infoList ) { uuidList . add ( factoryObjectInfo . getUuid ( ) ) ; pidList . add ( factoryObjectInfo . getPid ( ) ) ; } assertThat ( uuidList , hasItems ( pLinkUuid , pLinkUuid2 ) ) ; assertThat ( pidList , hasItems ( pLinkPid , pLinkPid2 ) ) ; }
Verify the system can remotely get the layers of physical link type.
Verify the system can remotely get the layers of physical link type .
//---Get the list of layers of physical link type and verify both physical links are in it---