mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/channel/TestChannelGuiDialogHelper.java
@Test
    public void testClearNewChannelInput()
    {
        m_SUT.setNewTransportName("SetNewTransportName");
        m_SUT.setNewTransportRemoteAddress("TransportRemoteAddress");
        m_SUT.setNewTransportLocalAddress("TransportLocalAddress");
        
        m_SUT.setNewSocketHost("NewSocketHost");
        m_SUT.setNewSocketPort(1);
        m_SUT.setNewSocketSsl(true);
        
        m_SUT.clearNewChannelInput();
       
        assertThat(m_SUT.getNewTransportName(), is(""));
        assertThat(m_SUT.getNewTransportRemoteAddress(), is(""));
        assertThat(m_SUT.getNewTransportLocalAddress(), is(""));
        
        assertThat(m_SUT.isNewSocketSsl(), is(false));
        assertThat(m_SUT.getNewSocketPort(), is(4000));
        assertThat(m_SUT.getNewSocketHost(), is("localhost"));
        assertThat(m_SUT.getNewChannelControllerId(), is(0));
        
        assertThat(m_SUT.getSelectedNewChannelType(), is(RemoteChannelTypeEnum.SOCKET));
    }
/**
     * Verify that input is properly cleared
     */
Verify that input is properly cleared
Verify that input is properly cleared
@Test
    public void testClearNewChannelInput()
    {
        m_SUT.setNewTransportName("SetNewTransportName");
        m_SUT.setNewTransportRemoteAddress("TransportRemoteAddress");
        m_SUT.setNewTransportLocalAddress("TransportLocalAddress");
        m_SUT.setNewSocketHost("NewSocketHost");
        m_SUT.setNewSocketPort(1);
        m_SUT.setNewSocketSsl(true);
        m_SUT.clearNewChannelInput();
        assertThat(m_SUT.getNewTransportName(), is(""));
        assertThat(m_SUT.getNewTransportRemoteAddress(), is(""));
        assertThat(m_SUT.getNewTransportLocalAddress(), is(""));
        assertThat(m_SUT.isNewSocketSsl(), is(false));
        assertThat(m_SUT.getNewSocketPort(), is(4000));
        assertThat(m_SUT.getNewSocketHost(), is("localhost"));
        assertThat(m_SUT.getNewChannelControllerId(), is(0));
        assertThat(m_SUT.getSelectedNewChannelType(), is(RemoteChannelTypeEnum.SOCKET));
    }
@ Test public void testClearNewChannelInput ( ) { m_SUT . setNewTransportName ( "SetNewTransportName" ) ; m_SUT . setNewTransportRemoteAddress ( "TransportRemoteAddress" ) ; m_SUT . setNewTransportLocalAddress ( "TransportLocalAddress" ) ; m_SUT . setNewSocketHost ( "NewSocketHost" ) ; m_SUT . setNewSocketPort ( 1 ) ; m_SUT . setNewSocketSsl ( true ) ; m_SUT . clearNewChannelInput ( ) ; assertThat ( m_SUT . getNewTransportName ( ) , is ( "" ) ) ; assertThat ( m_SUT . getNewTransportRemoteAddress ( ) , is ( "" ) ) ; assertThat ( m_SUT . getNewTransportLocalAddress ( ) , is ( "" ) ) ; assertThat ( m_SUT . isNewSocketSsl ( ) , is ( false ) ) ; assertThat ( m_SUT . getNewSocketPort ( ) , is ( 4000 ) ) ; assertThat ( m_SUT . getNewSocketHost ( ) , is ( "localhost" ) ) ; assertThat ( m_SUT . getNewChannelControllerId ( ) , is ( 0 ) ) ; assertThat ( m_SUT . getSelectedNewChannelType ( ) , is ( RemoteChannelTypeEnum . SOCKET ) ) ; }
Verify that input is properly cleared
Verify that input is properly cleared