mil.dod.th.ose.linux.serial/test/mil/dod/th/ose/linux/physical/TestSerialPortProxyImpl.java
@Test
    public void testSetTimeout() throws Exception
    {
        int timeout = 500;
        
        // set each port to the same setting so they can talk with each other
        m_Context = mockProperties(m_SUT, PORT_A_NAME, 57600, 8, ParityEnum.NONE, StopBitsEnum.ONE_STOP_BIT, 
            FlowControlEnum.NONE, timeout);
        
        m_SUT.open();
        
        verify(m_InputStream).setReadTimeout(timeout);
    }
/**
     * Verify the input stream timeout will be set when opening the serial port.
     */
Verify the input stream timeout will be set when opening the serial port.
Verify the input stream timeout will be set when opening the serial port .
@Test
    public void testSetTimeout() throws Exception
    {
        int timeout = 500;
        m_Context = mockProperties(m_SUT, PORT_A_NAME, 57600, 8, ParityEnum.NONE, StopBitsEnum.ONE_STOP_BIT, 
            FlowControlEnum.NONE, timeout);
        m_SUT.open();
        verify(m_InputStream).setReadTimeout(timeout);
    }
@ Test public void testSetTimeout ( ) throws Exception { int timeout = 500 ; m_Context = mockProperties ( m_SUT , PORT_A_NAME , 57600 , 8 , ParityEnum . NONE , StopBitsEnum . ONE_STOP_BIT , FlowControlEnum . NONE , timeout ) ; m_SUT . open ( ) ; verify ( m_InputStream ) . setReadTimeout ( timeout ) ; }
Verify the input stream timeout will be set when opening the serial port.
Verify the input stream timeout will be set when opening the serial port .
// set each port to the same setting so they can talk with each other