mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestCommsStackCreationModel.java
@Test
    public void testInit()
    {
        //name for layers
        String name = "James";
        
        //check that no name is set
        assertThat(m_SUT.getNewLinkName(), is(nullValue()));
        assertThat(m_SUT.getNewTransportName(), is(nullValue()));
        assertThat(m_SUT.getNewPhysicalName(), is(nullValue()));
        assertThat(m_SUT.isForceAdd(), is(false));

        //set a name
        m_SUT.setNewLinkName(name);
        m_SUT.setNewTransportName(name);
        m_SUT.setNewPhysicalName(name);
        m_SUT.setForceAdd(true);

        //verify
        assertThat(m_SUT.getNewLinkName(), is(name));
        assertThat(m_SUT.getNewTransportName(), is(name));
        assertThat(m_SUT.getNewPhysicalName(), is(name));
        assertThat(m_SUT.isForceAdd(), is(true));
        
        //set null name and verify empty
        m_SUT.setNewLinkName(null);
        m_SUT.setNewTransportName(null);
        m_SUT.setNewPhysicalName(null);
        
        assertThat(m_SUT.getNewLinkName(), is(""));
        assertThat(m_SUT.getNewTransportName(), is(""));
        assertThat(m_SUT.getNewPhysicalName(), is(""));
    }
/**
     * Verify field value initialize at null, 0, or false depending on the type of the field.
     * Verify able to reset field values.
     */
Verify field value initialize at null, 0, or false depending on the type of the field.
Verify able to reset field values.
Verify field value initialize at null 0 or false depending on the type of the field . Verify able to reset field values .
@Test
    public void testInit()
    {
        String name = "James";
        assertThat(m_SUT.getNewLinkName(), is(nullValue()));
        assertThat(m_SUT.getNewTransportName(), is(nullValue()));
        assertThat(m_SUT.getNewPhysicalName(), is(nullValue()));
        assertThat(m_SUT.isForceAdd(), is(false));
        m_SUT.setNewLinkName(name);
        m_SUT.setNewTransportName(name);
        m_SUT.setNewPhysicalName(name);
        m_SUT.setForceAdd(true);
        assertThat(m_SUT.getNewLinkName(), is(name));
        assertThat(m_SUT.getNewTransportName(), is(name));
        assertThat(m_SUT.getNewPhysicalName(), is(name));
        assertThat(m_SUT.isForceAdd(), is(true));
        m_SUT.setNewLinkName(null);
        m_SUT.setNewTransportName(null);
        m_SUT.setNewPhysicalName(null);
        assertThat(m_SUT.getNewLinkName(), is(""));
        assertThat(m_SUT.getNewTransportName(), is(""));
        assertThat(m_SUT.getNewPhysicalName(), is(""));
    }
@ Test public void testInit ( ) { String name = "James" ; assertThat ( m_SUT . getNewLinkName ( ) , is ( nullValue ( ) ) ) ; assertThat ( m_SUT . getNewTransportName ( ) , is ( nullValue ( ) ) ) ; assertThat ( m_SUT . getNewPhysicalName ( ) , is ( nullValue ( ) ) ) ; assertThat ( m_SUT . isForceAdd ( ) , is ( false ) ) ; m_SUT . setNewLinkName ( name ) ; m_SUT . setNewTransportName ( name ) ; m_SUT . setNewPhysicalName ( name ) ; m_SUT . setForceAdd ( true ) ; assertThat ( m_SUT . getNewLinkName ( ) , is ( name ) ) ; assertThat ( m_SUT . getNewTransportName ( ) , is ( name ) ) ; assertThat ( m_SUT . getNewPhysicalName ( ) , is ( name ) ) ; assertThat ( m_SUT . isForceAdd ( ) , is ( true ) ) ; m_SUT . setNewLinkName ( null ) ; m_SUT . setNewTransportName ( null ) ; m_SUT . setNewPhysicalName ( null ) ; assertThat ( m_SUT . getNewLinkName ( ) , is ( "" ) ) ; assertThat ( m_SUT . getNewTransportName ( ) , is ( "" ) ) ; assertThat ( m_SUT . getNewPhysicalName ( ) , is ( "" ) ) ; }
Verify field value initialize at null, 0, or false depending on the type of the field.
Verify field value initialize at null 0 or false depending on the type of the field .
//name for layers //check that no name is set //set a name //verify //set null name and verify empty