mil.dod.th.ose.transcoder.vlc/test/mil/dod/th/ose/transcoder/vlc/TestVlcUtils.java
@Test
    public void testCreateConfigStringWithTranscoding()
    {
        final Map<String, Object> configParams1 = new HashMap<>();
        configParams1.put(TranscoderService.CONFIG_PROP_BITRATE_KBPS, m_TranscodeBitrateKbps);
        configParams1.put(TranscoderService.CONFIG_PROP_FORMAT, m_MimeTypeMp4);
        assertThat(VlcUtils.createConfigString(m_MulticastUri, configParams1), 
                is(":sout=#transcode{vcodec=mp4v,vb=10.0,acodec=none}:rtp{dst=225.1.2.3,port=5000,mux=ts,ttl=128}"));
        
        final Map<String, Object> configParams2 = new HashMap<>();
        configParams2.put(TranscoderService.CONFIG_PROP_BITRATE_KBPS, m_TranscodeBitrateKbps);
        configParams2.put(TranscoderService.CONFIG_PROP_FORMAT, m_MimeTypeMpeg);
        assertThat(VlcUtils.createConfigString(m_MulticastUri, configParams2), 
                is(":sout=#transcode{vcodec=mp2v,vb=10.0,acodec=none}:rtp{dst=225.1.2.3,port=5000,mux=ts,ttl=128}"));
    }
/**
     * Verify that the proper configuration string is created for transcoding to multiple
     * output formats.
     */
Verify that the proper configuration string is created for transcoding to multiple
output formats.
Verify that the proper configuration string is created for transcoding to multiple output formats .
@Test
    public void testCreateConfigStringWithTranscoding()
    {
        final Map<String, Object> configParams1 = new HashMap<>();
        configParams1.put(TranscoderService.CONFIG_PROP_BITRATE_KBPS, m_TranscodeBitrateKbps);
        configParams1.put(TranscoderService.CONFIG_PROP_FORMAT, m_MimeTypeMp4);
        assertThat(VlcUtils.createConfigString(m_MulticastUri, configParams1), 
                is(":sout=#transcode{vcodec=mp4v,vb=10.0,acodec=none}:rtp{dst=225.1.2.3,port=5000,mux=ts,ttl=128}"));
        final Map<String, Object> configParams2 = new HashMap<>();
        configParams2.put(TranscoderService.CONFIG_PROP_BITRATE_KBPS, m_TranscodeBitrateKbps);
        configParams2.put(TranscoderService.CONFIG_PROP_FORMAT, m_MimeTypeMpeg);
        assertThat(VlcUtils.createConfigString(m_MulticastUri, configParams2), 
                is(":sout=#transcode{vcodec=mp2v,vb=10.0,acodec=none}:rtp{dst=225.1.2.3,port=5000,mux=ts,ttl=128}"));
    }
@ Test public void testCreateConfigStringWithTranscoding ( ) { final Map < String , Object > configParams1 = new HashMap < > ( ) ; configParams1 . put ( TranscoderService . CONFIG_PROP_BITRATE_KBPS , m_TranscodeBitrateKbps ) ; configParams1 . put ( TranscoderService . CONFIG_PROP_FORMAT , m_MimeTypeMp4 ) ; assertThat ( VlcUtils . createConfigString ( m_MulticastUri , configParams1 ) , is ( ":sout=#transcode{vcodec=mp4v,vb=10.0,acodec=none}:rtp{dst=225.1.2.3,port=5000,mux=ts,ttl=128}" ) ) ; final Map < String , Object > configParams2 = new HashMap < > ( ) ; configParams2 . put ( TranscoderService . CONFIG_PROP_BITRATE_KBPS , m_TranscodeBitrateKbps ) ; configParams2 . put ( TranscoderService . CONFIG_PROP_FORMAT , m_MimeTypeMpeg ) ; assertThat ( VlcUtils . createConfigString ( m_MulticastUri , configParams2 ) , is ( ":sout=#transcode{vcodec=mp2v,vb=10.0,acodec=none}:rtp{dst=225.1.2.3,port=5000,mux=ts,ttl=128}" ) ) ; }
Verify that the proper configuration string is created for transcoding to multiple
 output formats.
Verify that the proper configuration string is created for transcoding to multiple output formats .