mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestCustomCommsNamespace_TransportLayer.java
@Test
    public void testGetLayersTransportLayer() throws IOException, InterruptedException
    {
        //---Get the list of layers of transport layer type and verify both transport layers are in it---
        List<FactoryObjectInfo> infoList = CustomCommsNamespaceUtils.getLayersByType(socket, CommType.TransportLayer);
        
        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(transUuid, transUuid2));
        assertThat(pidList, hasItems(transPid, transPid2));
    }
/**
     * Verify the system can remotely get the layers of transport layer type.
     */
Verify the system can remotely get the layers of transport layer type.
Verify the system can remotely get the layers of transport layer type .
@Test
    public void testGetLayersTransportLayer() throws IOException, InterruptedException
    {
        List<FactoryObjectInfo> infoList = CustomCommsNamespaceUtils.getLayersByType(socket, CommType.TransportLayer);
        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(transUuid, transUuid2));
        assertThat(pidList, hasItems(transPid, transPid2));
    }
@ Test public void testGetLayersTransportLayer ( ) throws IOException , InterruptedException { List < FactoryObjectInfo > infoList = CustomCommsNamespaceUtils . getLayersByType ( socket , CommType . TransportLayer ) ; 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 ( transUuid , transUuid2 ) ) ; assertThat ( pidList , hasItems ( transPid , transPid2 ) ) ; }
Verify the system can remotely get the layers of transport layer type.
Verify the system can remotely get the layers of transport layer type .
//---Get the list of layers of transport layer type and verify both transport layers are in it---