mil.dod.th.ose.linux.serial/test/mil/dod/th/ose/linux/physical/TestSerialPortProxyImpl.java
@Test
    public void testGetOutputStream()
        throws PhysicalLinkException
    {
        try
        {
            m_SUT.getOutputStream();
            fail("Expected PhysicalLinkException");
        }
        catch (PhysicalLinkException e) { }
        
        m_SUT.open();
        OutputStream os = m_SUT.getOutputStream();
        assertThat(os, is(notNullValue()));
    }
/**
     * Verify that serial port must be open in order to access the output stream.
     */
Verify that serial port must be open in order to access the output stream.
Verify that serial port must be open in order to access the output stream .
@Test
    public void testGetOutputStream()
        throws PhysicalLinkException
    {
        try
        {
            m_SUT.getOutputStream();
            fail("Expected PhysicalLinkException");
        }
        catch (PhysicalLinkException e) { }
        m_SUT.open();
        OutputStream os = m_SUT.getOutputStream();
        assertThat(os, is(notNullValue()));
    }
@ Test public void testGetOutputStream ( ) throws PhysicalLinkException { try { m_SUT . getOutputStream ( ) ; fail ( "Expected PhysicalLinkException" ) ; } catch ( PhysicalLinkException e ) { } m_SUT . open ( ) ; OutputStream os = m_SUT . getOutputStream ( ) ; assertThat ( os , is ( notNullValue ( ) ) ) ; }
Verify that serial port must be open in order to access the output stream.
Verify that serial port must be open in order to access the output stream .