mil.dod.th.ose.datastream/test/mil/dod/th/ose/datastream/TestDataStreamServiceImpl.java
@Test
    public void testGetStreamProfileFactoryDescriptors() throws InvalidSyntaxException
    {      
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(DataStreamServiceConfig.CONFIG_PROP_MULTICAST_HOST, "225.1.2.3");
        props.put(DataStreamServiceConfig.CONFIG_PROP_START_PORT, 5004);
        
        m_SUT.activate(Collections.unmodifiableMap(props), m_BundleContext);
        
        when(m_ServiceContext.getFactories()).thenReturn(m_StreamProfileFactories);
        
        Set<StreamProfileFactory> expectedFactories = 
                new HashSet<StreamProfileFactory>(m_StreamProfileFactories.values());
        Set<StreamProfileFactory> factories = m_SUT.getStreamProfileFactories();
        assertThat(factories, is(expectedFactories));
    }
/**
     * Verify that the service will return the factory descriptors for all registered factories. 
     */
Verify that the service will return the factory descriptors for all registered factories.
Verify that the service will return the factory descriptors for all registered factories .
@Test
    public void testGetStreamProfileFactoryDescriptors() throws InvalidSyntaxException
    {      
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(DataStreamServiceConfig.CONFIG_PROP_MULTICAST_HOST, "225.1.2.3");
        props.put(DataStreamServiceConfig.CONFIG_PROP_START_PORT, 5004);
        m_SUT.activate(Collections.unmodifiableMap(props), m_BundleContext);
        when(m_ServiceContext.getFactories()).thenReturn(m_StreamProfileFactories);
        Set<StreamProfileFactory> expectedFactories = 
                new HashSet<StreamProfileFactory>(m_StreamProfileFactories.values());
        Set<StreamProfileFactory> factories = m_SUT.getStreamProfileFactories();
        assertThat(factories, is(expectedFactories));
    }
@ Test public void testGetStreamProfileFactoryDescriptors ( ) throws InvalidSyntaxException { Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( DataStreamServiceConfig . CONFIG_PROP_MULTICAST_HOST , "225.1.2.3" ) ; props . put ( DataStreamServiceConfig . CONFIG_PROP_START_PORT , 5004 ) ; m_SUT . activate ( Collections . unmodifiableMap ( props ) , m_BundleContext ) ; when ( m_ServiceContext . getFactories ( ) ) . thenReturn ( m_StreamProfileFactories ) ; Set < StreamProfileFactory > expectedFactories = new HashSet < StreamProfileFactory > ( m_StreamProfileFactories . values ( ) ) ; Set < StreamProfileFactory > factories = m_SUT . getStreamProfileFactories ( ) ; assertThat ( factories , is ( expectedFactories ) ) ; }
Verify that the service will return the factory descriptors for all registered factories.
Verify that the service will return the factory descriptors for all registered factories .