mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/channel/TestChannelGuiDialogHelper.java
@Test
    public void testGetChannelChoices()
    {
        List<NewChannelChoice> choices = m_SUT.getChannelChoices();
        
        assertThat(choices.size(), is(3));
        
        //Socket choice is always added by default. That is why it is the first one
        //in the list. 
        assertThat(choices.get(0).getChannelName(), is("Socket"));
        assertThat(choices.get(0).getChannelType(), is(RemoteChannelTypeEnum.SOCKET));
        
        assertThat(choices.get(1).getChannelName(), is("TransportLayer1"));
        assertThat(choices.get(1).getChannelType(), is(RemoteChannelTypeEnum.TRANSPORT));
        
        assertThat(choices.get(2).getChannelName(), is("TransportLayer2"));
        assertThat(choices.get(2).getChannelType(), is(RemoteChannelTypeEnum.TRANSPORT));
    }
/**
     * Verify channel choices returns proper NewChannelChoices
     */
Verify channel choices returns proper NewChannelChoices
Verify channel choices returns proper NewChannelChoices
@Test
    public void testGetChannelChoices()
    {
        List<NewChannelChoice> choices = m_SUT.getChannelChoices();
        assertThat(choices.size(), is(3));
        assertThat(choices.get(0).getChannelName(), is("Socket"));
        assertThat(choices.get(0).getChannelType(), is(RemoteChannelTypeEnum.SOCKET));
        assertThat(choices.get(1).getChannelName(), is("TransportLayer1"));
        assertThat(choices.get(1).getChannelType(), is(RemoteChannelTypeEnum.TRANSPORT));
        assertThat(choices.get(2).getChannelName(), is("TransportLayer2"));
        assertThat(choices.get(2).getChannelType(), is(RemoteChannelTypeEnum.TRANSPORT));
    }
@ Test public void testGetChannelChoices ( ) { List < NewChannelChoice > choices = m_SUT . getChannelChoices ( ) ; assertThat ( choices . size ( ) , is ( 3 ) ) ; assertThat ( choices . get ( 0 ) . getChannelName ( ) , is ( "Socket" ) ) ; assertThat ( choices . get ( 0 ) . getChannelType ( ) , is ( RemoteChannelTypeEnum . SOCKET ) ) ; assertThat ( choices . get ( 1 ) . getChannelName ( ) , is ( "TransportLayer1" ) ) ; assertThat ( choices . get ( 1 ) . getChannelType ( ) , is ( RemoteChannelTypeEnum . TRANSPORT ) ) ; assertThat ( choices . get ( 2 ) . getChannelName ( ) , is ( "TransportLayer2" ) ) ; assertThat ( choices . get ( 2 ) . getChannelType ( ) , is ( RemoteChannelTypeEnum . TRANSPORT ) ) ; }
Verify channel choices returns proper NewChannelChoices
Verify channel choices returns proper NewChannelChoices
//Socket choice is always added by default. That is why it is the first one //in the list. 