mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/general/TestCapabilitiesTree.java
@Test
    public void testCommsCapabilities()
    {
        CapabilitiesFakeObjects fakes = new CapabilitiesFakeObjects();
        PhysicalLinkCapabilities plc = fakes.genPhysLinkCaps();
        LinkLayerCapabilities lc = fakes.genLinkLayerCaps();
        TransportLayerCapabilities tlc = fakes.genTransportLayerCaps();
        
        TreeNode root = m_SUT.getRoot(plc);
        assertThat(root.getChildCount(), is(5));

        root = m_SUT.getRoot(lc);
        assertThat(root.getChildCount(), is(10));
        
        root = m_SUT.getRoot(tlc);
        assertThat(root.getChildCount(), is(7));
    }
/**
     * Test building tree from comms capabilities.
     */
Test building tree from comms capabilities.
Test building tree from comms capabilities .
@Test
    public void testCommsCapabilities()
    {
        CapabilitiesFakeObjects fakes = new CapabilitiesFakeObjects();
        PhysicalLinkCapabilities plc = fakes.genPhysLinkCaps();
        LinkLayerCapabilities lc = fakes.genLinkLayerCaps();
        TransportLayerCapabilities tlc = fakes.genTransportLayerCaps();
        TreeNode root = m_SUT.getRoot(plc);
        assertThat(root.getChildCount(), is(5));
        root = m_SUT.getRoot(lc);
        assertThat(root.getChildCount(), is(10));
        root = m_SUT.getRoot(tlc);
        assertThat(root.getChildCount(), is(7));
    }
@ Test public void testCommsCapabilities ( ) { CapabilitiesFakeObjects fakes = new CapabilitiesFakeObjects ( ) ; PhysicalLinkCapabilities plc = fakes . genPhysLinkCaps ( ) ; LinkLayerCapabilities lc = fakes . genLinkLayerCaps ( ) ; TransportLayerCapabilities tlc = fakes . genTransportLayerCaps ( ) ; TreeNode root = m_SUT . getRoot ( plc ) ; assertThat ( root . getChildCount ( ) , is ( 5 ) ) ; root = m_SUT . getRoot ( lc ) ; assertThat ( root . getChildCount ( ) , is ( 10 ) ) ; root = m_SUT . getRoot ( tlc ) ; assertThat ( root . getChildCount ( ) , is ( 7 ) ) ; }
Test building tree from comms capabilities.
Test building tree from comms capabilities .