mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestAddCommsDialogHelperImpl.java
@Test
    public void testClearAllSelectedValues()
    {
        setAllSelectedValues();
        
        CommsStackCreationModel model = m_SUT.getCommsCreationModel();
        
        //verify values are set
        assertThat(model.getNewLinkName(), is("linkyLink"));
        assertThat(model.getNewTransportName(), is("transyTrans"));
        assertThat(model.isForceAdd(), is(true));
        assertThat(m_SUT.getActiveIndex(), is(1));
        assertThat(model.getSelectedPhysicalType(), is(PhysicalLinkTypeEnum.SPI));
        assertThat(model.getSelectedPhysicalLink(), is("fizzyPhys"));
        assertThat(model.getSelectedTransportLayerType(), is("example.trans.type"));
        assertThat(model.getSelectedLinkLayerType(), is("example.link.type"));
        assertThat(model.getNewPhysicalName(), is("tobyPhys"));     
        
        m_SUT.clearAllSelectedValues();
        
        CommsStackCreationModel modelAgain = m_SUT.getCommsCreationModel();
        
        //verify values are cleared
        assertThat(modelAgain.getNewLinkName(), is(nullValue()));
        assertThat(modelAgain.getNewTransportName(), is(nullValue()));
        assertThat(modelAgain.isForceAdd(), is(false));
        assertThat(m_SUT.getActiveIndex(), is(0));
        assertThat(modelAgain.getSelectedPhysicalType(), is(nullValue()));
        assertThat(modelAgain.getSelectedPhysicalLink(), is(nullValue()));
        assertThat(modelAgain.getSelectedTransportLayerType(), is(nullValue()));
        assertThat(modelAgain.getSelectedLinkLayerType(), is(nullValue()));
        assertThat(modelAgain.getNewPhysicalName(), is(nullValue())); 
    }
/**
     * Verify all input values are reset to their default values. 
     */
Verify all input values are reset to their default values.
Verify all input values are reset to their default values .
@Test
    public void testClearAllSelectedValues()
    {
        setAllSelectedValues();
        CommsStackCreationModel model = m_SUT.getCommsCreationModel();
        assertThat(model.getNewLinkName(), is("linkyLink"));
        assertThat(model.getNewTransportName(), is("transyTrans"));
        assertThat(model.isForceAdd(), is(true));
        assertThat(m_SUT.getActiveIndex(), is(1));
        assertThat(model.getSelectedPhysicalType(), is(PhysicalLinkTypeEnum.SPI));
        assertThat(model.getSelectedPhysicalLink(), is("fizzyPhys"));
        assertThat(model.getSelectedTransportLayerType(), is("example.trans.type"));
        assertThat(model.getSelectedLinkLayerType(), is("example.link.type"));
        assertThat(model.getNewPhysicalName(), is("tobyPhys"));     
        m_SUT.clearAllSelectedValues();
        CommsStackCreationModel modelAgain = m_SUT.getCommsCreationModel();
        assertThat(modelAgain.getNewLinkName(), is(nullValue()));
        assertThat(modelAgain.getNewTransportName(), is(nullValue()));
        assertThat(modelAgain.isForceAdd(), is(false));
        assertThat(m_SUT.getActiveIndex(), is(0));
        assertThat(modelAgain.getSelectedPhysicalType(), is(nullValue()));
        assertThat(modelAgain.getSelectedPhysicalLink(), is(nullValue()));
        assertThat(modelAgain.getSelectedTransportLayerType(), is(nullValue()));
        assertThat(modelAgain.getSelectedLinkLayerType(), is(nullValue()));
        assertThat(modelAgain.getNewPhysicalName(), is(nullValue())); 
    }
@ Test public void testClearAllSelectedValues ( ) { setAllSelectedValues ( ) ; CommsStackCreationModel model = m_SUT . getCommsCreationModel ( ) ; assertThat ( model . getNewLinkName ( ) , is ( "linkyLink" ) ) ; assertThat ( model . getNewTransportName ( ) , is ( "transyTrans" ) ) ; assertThat ( model . isForceAdd ( ) , is ( true ) ) ; assertThat ( m_SUT . getActiveIndex ( ) , is ( 1 ) ) ; assertThat ( model . getSelectedPhysicalType ( ) , is ( PhysicalLinkTypeEnum . SPI ) ) ; assertThat ( model . getSelectedPhysicalLink ( ) , is ( "fizzyPhys" ) ) ; assertThat ( model . getSelectedTransportLayerType ( ) , is ( "example.trans.type" ) ) ; assertThat ( model . getSelectedLinkLayerType ( ) , is ( "example.link.type" ) ) ; assertThat ( model . getNewPhysicalName ( ) , is ( "tobyPhys" ) ) ; m_SUT . clearAllSelectedValues ( ) ; CommsStackCreationModel modelAgain = m_SUT . getCommsCreationModel ( ) ; assertThat ( modelAgain . getNewLinkName ( ) , is ( nullValue ( ) ) ) ; assertThat ( modelAgain . getNewTransportName ( ) , is ( nullValue ( ) ) ) ; assertThat ( modelAgain . isForceAdd ( ) , is ( false ) ) ; assertThat ( m_SUT . getActiveIndex ( ) , is ( 0 ) ) ; assertThat ( modelAgain . getSelectedPhysicalType ( ) , is ( nullValue ( ) ) ) ; assertThat ( modelAgain . getSelectedPhysicalLink ( ) , is ( nullValue ( ) ) ) ; assertThat ( modelAgain . getSelectedTransportLayerType ( ) , is ( nullValue ( ) ) ) ; assertThat ( modelAgain . getSelectedLinkLayerType ( ) , is ( nullValue ( ) ) ) ; assertThat ( modelAgain . getNewPhysicalName ( ) , is ( nullValue ( ) ) ) ; }
Verify all input values are reset to their default values.
Verify all input values are reset to their default values .
//verify values are set //verify values are cleared