mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestAddCommsDialogHelperImpl.java
@Test
    public void testGetSetSelectedLinkLayer()
    {
        //type for link layer
        String type = "linklayer.type";
        
        CommsStackCreationModel model = m_SUT.getCommsCreationModel();

        //check that no type is set
        assertThat(model.getSelectedLinkLayerType(), is(nullValue()));

        //set a name
        model.setSelectedLinkLayerType(type);

        //verify
        assertThat(model.getSelectedLinkLayerType(), is(type));
        
        //verify dialog helper is keeping the updated model
        CommsStackCreationModel checkModel = m_SUT.getCommsCreationModel();
        
        //verify
        assertThat(checkModel.getSelectedLinkLayerType(), is(type));
    }
/**
     * Test setting the ability for the helper to set and get selected link layer.
     * Verify correct type is returned when requested.
     */
Test setting the ability for the helper to set and get selected link layer.
Verify correct type is returned when requested.
Test setting the ability for the helper to set and get selected link layer . Verify correct type is returned when requested .
@Test
    public void testGetSetSelectedLinkLayer()
    {
        String type = "linklayer.type";
        CommsStackCreationModel model = m_SUT.getCommsCreationModel();
        assertThat(model.getSelectedLinkLayerType(), is(nullValue()));
        model.setSelectedLinkLayerType(type);
        assertThat(model.getSelectedLinkLayerType(), is(type));
         dialog helper is keeping the updated model
        CommsStackCreationModel checkModel = m_SUT.getCommsCreationModel();
        assertThat(checkModel.getSelectedLinkLayerType(), is(type));
    }
@ Test public void testGetSetSelectedLinkLayer ( ) { String type = "linklayer.type" ; CommsStackCreationModel model = m_SUT . getCommsCreationModel ( ) ; assertThat ( model . getSelectedLinkLayerType ( ) , is ( nullValue ( ) ) ) ; model . setSelectedLinkLayerType ( type ) ; assertThat ( model . getSelectedLinkLayerType ( ) , is ( type ) ) ; CommsStackCreationModel checkModel = m_SUT . getCommsCreationModel ( ) ; assertThat ( checkModel . getSelectedLinkLayerType ( ) , is ( type ) ) ; }
Test setting the ability for the helper to set and get selected link layer.
Test setting the ability for the helper to set and get selected link layer .
//type for link layer //check that no type is set //set a name //verify //verify dialog helper is keeping the updated model //verify