mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestDataStreamServiceNamespace.java
@Test
    public final void testEnableStreamProfiles() throws IOException
    {
        Set<StreamProfile> profiles = DataStreamServiceNamespaceUtils.getStreamProfiles(socket);
        
        for (StreamProfile profile : profiles)
        {
            DataStreamServiceNamespaceUtils.enableStreamProfile(socket, profile.getInfo().getUuid());
        }
        
        //Retrieve profiles again, after they have all been enabled
        Set<StreamProfile> profilesAfter = DataStreamServiceNamespaceUtils.getStreamProfiles(socket);
        
        for (StreamProfile profile : profilesAfter)
        {
            assertThat(profile.getIsEnabled(), is(true));
        }      
    }
/**
     * Verify that all StreamProfile instances on the controller can be enabled.
     */
Verify that all StreamProfile instances on the controller can be enabled.
Verify that all StreamProfile instances on the controller can be enabled .
@Test
    public final void testEnableStreamProfiles() throws IOException
    {
        Set<StreamProfile> profiles = DataStreamServiceNamespaceUtils.getStreamProfiles(socket);
        for (StreamProfile profile : profiles)
        {
            DataStreamServiceNamespaceUtils.enableStreamProfile(socket, profile.getInfo().getUuid());
        }
        Set<StreamProfile> profilesAfter = DataStreamServiceNamespaceUtils.getStreamProfiles(socket);
        for (StreamProfile profile : profilesAfter)
        {
            assertThat(profile.getIsEnabled(), is(true));
        }      
    }
@ Test public final void testEnableStreamProfiles ( ) throws IOException { Set < StreamProfile > profiles = DataStreamServiceNamespaceUtils . getStreamProfiles ( socket ) ; for ( StreamProfile profile : profiles ) { DataStreamServiceNamespaceUtils . enableStreamProfile ( socket , profile . getInfo ( ) . getUuid ( ) ) ; } Set < StreamProfile > profilesAfter = DataStreamServiceNamespaceUtils . getStreamProfiles ( socket ) ; for ( StreamProfile profile : profilesAfter ) { assertThat ( profile . getIsEnabled ( ) , is ( true ) ) ; } }
Verify that all StreamProfile instances on the controller can be enabled.
Verify that all StreamProfile instances on the controller can be enabled .
//Retrieve profiles again, after they have all been enabled