mil.dod.th.ose.linux.serial/test/mil/dod/th/ose/linux/physical/TestSerialPortProxyImpl.java
@Test
    public void testSetTimeoutNegative() throws Exception
    {
        int timeout = -75;
        
        // 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(0);
    }
/**
     * Verify that if a negative timeout is specified the input stream timeout is set to 0. Linux does not except
     * negative numbers for input stream timeout.
     */
Verify that if a negative timeout is specified the input stream timeout is set to 0. Linux does not except
negative numbers for input stream timeout.
Verify that if a negative timeout is specified the input stream timeout is set to 0 . Linux does not except negative numbers for input stream timeout .
@Test
    public void testSetTimeoutNegative() throws Exception
    {
        int timeout = -75;
        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(0);
    }
@ Test public void testSetTimeoutNegative ( ) throws Exception { int timeout = - 75 ; 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 ( 0 ) ; }
Verify that if a negative timeout is specified the input stream timeout is set to 0.
Verify that if a negative timeout is specified the input stream timeout is set to 0 .
// set each port to the same setting so they can talk with each other