mil.dod.th.ose.sdk/test/mil/dod/th/ose/sdk/those/TestProjectLinkLayerCapabilities.java
@Test
    public void testGetCapabilities()
    {
        // get the byte array of the capabilities xml
        final byte[] capByte = ProjectLinkLayerCapabilities.getCapabilities();

        // read the byte array to a string object, used as the string to test against
        String lineAccum = new String(capByte);

        // assert that each main tag contains the correct sub-tags and/or fields
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "<primaryImage", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "<secondaryImages", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "productName", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "description", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "manufacturer", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>", 
                "staticMtu", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>", 
                "mtu", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "modality", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "physicalLinkRequired", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "performBITSupported", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "supportsAddressing", lineAccum);
        
        ProjectCapabilitiesUtils.assertTestPattern("<primaryImage", "/primaryImage>", "encoding", lineAccum);

        ProjectCapabilitiesUtils.assertTestPattern("<secondaryImages", "/secondaryImages>", "encoding", lineAccum);

        ProjectCapabilitiesUtils.assertTestPattern("<ns2:physicalLinksSupported>", "</ns2:physicalLinksSupported>", 
                "SerialPort", lineAccum);
    }
/**
     * Tests that the {@link ProjectLinkLayerCapabilities#getCapabilities()} returns an object containing the correct
     * XML tags.
     */
Tests that the  ProjectLinkLayerCapabilities#getCapabilities() returns an object containing the correct
XML tags.
Tests that the ProjectLinkLayerCapabilities#getCapabilities () returns an object containing the correct XML tags .
@Test
    public void testGetCapabilities()
    {
        final byte[] capByte = ProjectLinkLayerCapabilities.getCapabilities();
        String lineAccum = new String(capByte);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "<primaryImage", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "<secondaryImages", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "productName", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "description", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "manufacturer", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>", 
                "staticMtu", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>", 
                "mtu", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "modality", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "physicalLinkRequired", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "performBITSupported", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:LinkLayerCapabilities", "</ns2:LinkLayerCapabilities>",
                "supportsAddressing", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<primaryImage", "/primaryImage>", "encoding", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<secondaryImages", "/secondaryImages>", "encoding", lineAccum);
        ProjectCapabilitiesUtils.assertTestPattern("<ns2:physicalLinksSupported>", "</ns2:physicalLinksSupported>", 
                "SerialPort", lineAccum);
    }
@ Test public void testGetCapabilities ( ) { final byte [ ] capByte = ProjectLinkLayerCapabilities . getCapabilities ( ) ; String lineAccum = new String ( capByte ) ; ProjectCapabilitiesUtils . assertTestPattern ( "<ns2:LinkLayerCapabilities" , "</ns2:LinkLayerCapabilities>" , "<primaryImage" , lineAccum ) ; ProjectCapabilitiesUtils . assertTestPattern ( "<ns2:LinkLayerCapabilities" , "</ns2:LinkLayerCapabilities>" , "<secondaryImages" , lineAccum ) ; ProjectCapabilitiesUtils . assertTestPattern ( "<ns2:LinkLayerCapabilities" , "</ns2:LinkLayerCapabilities>" , "productName" , lineAccum ) ; ProjectCapabilitiesUtils . assertTestPattern ( "<ns2:LinkLayerCapabilities" , "</ns2:LinkLayerCapabilities>" , "description" , lineAccum ) ; ProjectCapabilitiesUtils . assertTestPattern ( "<ns2:LinkLayerCapabilities" , "</ns2:LinkLayerCapabilities>" , "manufacturer" , lineAccum ) ; ProjectCapabilitiesUtils . assertTestPattern ( "<ns2:LinkLayerCapabilities" , "</ns2:LinkLayerCapabilities>" , "staticMtu" , lineAccum ) ; ProjectCapabilitiesUtils . assertTestPattern ( "<ns2:LinkLayerCapabilities" , "</ns2:LinkLayerCapabilities>" , "mtu" , lineAccum ) ; ProjectCapabilitiesUtils . assertTestPattern ( "<ns2:LinkLayerCapabilities" , "</ns2:LinkLayerCapabilities>" , "modality" , lineAccum ) ; ProjectCapabilitiesUtils . assertTestPattern ( "<ns2:LinkLayerCapabilities" , "</ns2:LinkLayerCapabilities>" , "physicalLinkRequired" , lineAccum ) ; ProjectCapabilitiesUtils . assertTestPattern ( "<ns2:LinkLayerCapabilities" , "</ns2:LinkLayerCapabilities>" , "performBITSupported" , lineAccum ) ; ProjectCapabilitiesUtils . assertTestPattern ( "<ns2:LinkLayerCapabilities" , "</ns2:LinkLayerCapabilities>" , "supportsAddressing" , lineAccum ) ; ProjectCapabilitiesUtils . assertTestPattern ( "<primaryImage" , "/primaryImage>" , "encoding" , lineAccum ) ; ProjectCapabilitiesUtils . assertTestPattern ( "<secondaryImages" , "/secondaryImages>" , "encoding" , lineAccum ) ; ProjectCapabilitiesUtils . assertTestPattern ( "<ns2:physicalLinksSupported>" , "</ns2:physicalLinksSupported>" , "SerialPort" , lineAccum ) ; }
Tests that the {@link ProjectLinkLayerCapabilities#getCapabilities()} returns an object containing the correct
 XML tags.
Tests that the { @link ProjectLinkLayerCapabilities#getCapabilities () } returns an object containing the correct XML tags .
// get the byte array of the capabilities xml // read the byte array to a string object, used as the string to test against // assert that each main tag contains the correct sub-tags and/or fields