mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestPhysicalLinkTypeConverter.java
@Test
    public void testGetAsString() 
    {
        assertThat(m_SUT.getAsString(null, null, PhysicalLinkTypeEnum.GPIO), is("GPIO"));
        assertThat(m_SUT.getAsString(null, null, PhysicalLinkTypeEnum.SPI), is("SPI"));
        assertThat(m_SUT.getAsString(null, null, PhysicalLinkTypeEnum.SERIAL_PORT), is("Serial Port"));
        assertThat(m_SUT.getAsString(null, null, PhysicalLinkTypeEnum.I_2_C), is("I 2 C"));
        // make sure null value doesn't cause exception
        assertThat(m_SUT.getAsString(null, null, null), is(nullValue()));
    }
/**
     * Verify correct translation of physical link {@link PhysicalLinkTypeEnum}s to a readable string.
     */
Verify correct translation of physical link  PhysicalLinkTypeEnums to a readable string.
Verify correct translation of physical link PhysicalLinkTypeEnums to a readable string .
@Test
    public void testGetAsString() 
    {
        assertThat(m_SUT.getAsString(null, null, PhysicalLinkTypeEnum.GPIO), is("GPIO"));
        assertThat(m_SUT.getAsString(null, null, PhysicalLinkTypeEnum.SPI), is("SPI"));
        assertThat(m_SUT.getAsString(null, null, PhysicalLinkTypeEnum.SERIAL_PORT), is("Serial Port"));
        assertThat(m_SUT.getAsString(null, null, PhysicalLinkTypeEnum.I_2_C), is("I 2 C"));
        assertThat(m_SUT.getAsString(null, null, null), is(nullValue()));
    }
@ Test public void testGetAsString ( ) { assertThat ( m_SUT . getAsString ( null , null , PhysicalLinkTypeEnum . GPIO ) , is ( "GPIO" ) ) ; assertThat ( m_SUT . getAsString ( null , null , PhysicalLinkTypeEnum . SPI ) , is ( "SPI" ) ) ; assertThat ( m_SUT . getAsString ( null , null , PhysicalLinkTypeEnum . SERIAL_PORT ) , is ( "Serial Port" ) ) ; assertThat ( m_SUT . getAsString ( null , null , PhysicalLinkTypeEnum . I_2_C ) , is ( "I 2 C" ) ) ; assertThat ( m_SUT . getAsString ( null , null , null ) , is ( nullValue ( ) ) ) ; }
Verify correct translation of physical link {@link PhysicalLinkTypeEnum}s to a readable string.
Verify correct translation of physical link { @link PhysicalLinkTypeEnum } s to a readable string .
// make sure null value doesn't cause exception