mil.dod.th.ose.linux.serial/test/mil/dod/th/ose/linux/physical/TestSerialPortProxyImpl.java
@Test
    public void testGetInputStream() 
        throws PhysicalLinkException, IllegalArgumentException
    {
        try
        {
            m_SUT.getInputStream();
            fail("Expected PhysicalLinkException");
        }
        catch (PhysicalLinkException e) { }
        
        m_SUT.open();
        InputStream is = m_SUT.getInputStream();
        assertThat(is, is((InputStream)m_InputStream));
    }
/**
     * Verify exception if serial port is not open and input stream is accessed.
     * Verify ability to get the input stream.
     */
Verify exception if serial port is not open and input stream is accessed.
Verify ability to get the input stream.
Verify exception if serial port is not open and input stream is accessed . Verify ability to get the input stream .
@Test
    public void testGetInputStream() 
        throws PhysicalLinkException, IllegalArgumentException
    {
        try
        {
            m_SUT.getInputStream();
            fail("Expected PhysicalLinkException");
        }
        catch (PhysicalLinkException e) { }
        m_SUT.open();
        InputStream is = m_SUT.getInputStream();
        assertThat(is, is((InputStream)m_InputStream));
    }
@ Test public void testGetInputStream ( ) throws PhysicalLinkException , IllegalArgumentException { try { m_SUT . getInputStream ( ) ; fail ( "Expected PhysicalLinkException" ) ; } catch ( PhysicalLinkException e ) { } m_SUT . open ( ) ; InputStream is = m_SUT . getInputStream ( ) ; assertThat ( is , is ( ( InputStream ) m_InputStream ) ) ; }
Verify exception if serial port is not open and input stream is accessed.
Verify exception if serial port is not open and input stream is accessed .