mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestDataStreamServiceNamespace.java
@Test
    public final void testGetStreamProfileCapabilities() throws IOException
    {
        StreamProfileCapabilities capabilities = DataStreamServiceNamespaceUtils.
                getStreamProfileCapabilities(socket, ExampleStreamProfile.class.getName());
        
        assertThat(capabilities, is(notNullValue()));
        assertThat(capabilities.hasMaxBitrateKbps(), is(true));
        assertThat(capabilities.hasMinBitrateKbps(), is(true));
        
        List<String> knownFormats = new ArrayList<>();
        knownFormats.add("video/mp4");
        knownFormats.add("video/mpeg");
        
        List<StreamFormat> streamFormats = capabilities.getFormatList();
        for (StreamFormat format : streamFormats)
        {
            assertThat(knownFormats.contains(format.getMimeFormat()), is(true));
        }    
    }
/**
     * Verifies ability of the system to get a stream profile's capabilities remotely.
     */
Verifies ability of the system to get a stream profile's capabilities remotely.
Verifies ability of the system to get a stream profile ' s capabilities remotely .
@Test
    public final void testGetStreamProfileCapabilities() throws IOException
    {
        StreamProfileCapabilities capabilities = DataStreamServiceNamespaceUtils.
                getStreamProfileCapabilities(socket, ExampleStreamProfile.class.getName());
        assertThat(capabilities, is(notNullValue()));
        assertThat(capabilities.hasMaxBitrateKbps(), is(true));
        assertThat(capabilities.hasMinBitrateKbps(), is(true));
        List<String> knownFormats = new ArrayList<>();
        knownFormats.add("video/mp4");
        knownFormats.add("video/mpeg");
        List<StreamFormat> streamFormats = capabilities.getFormatList();
        for (StreamFormat format : streamFormats)
        {
            assertThat(knownFormats.contains(format.getMimeFormat()), is(true));
        }    
    }
@ Test public final void testGetStreamProfileCapabilities ( ) throws IOException { StreamProfileCapabilities capabilities = DataStreamServiceNamespaceUtils . getStreamProfileCapabilities ( socket , ExampleStreamProfile . class . getName ( ) ) ; assertThat ( capabilities , is ( notNullValue ( ) ) ) ; assertThat ( capabilities . hasMaxBitrateKbps ( ) , is ( true ) ) ; assertThat ( capabilities . hasMinBitrateKbps ( ) , is ( true ) ) ; List < String > knownFormats = new ArrayList < > ( ) ; knownFormats . add ( "video/mp4" ) ; knownFormats . add ( "video/mpeg" ) ; List < StreamFormat > streamFormats = capabilities . getFormatList ( ) ; for ( StreamFormat format : streamFormats ) { assertThat ( knownFormats . contains ( format . getMimeFormat ( ) ) , is ( true ) ) ; } }
Verifies ability of the system to get a stream profile's capabilities remotely.
Verifies ability of the system to get a stream profile ' s capabilities remotely .